diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-06-25 08:18:19 +0200 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-06-25 08:18:19 +0200 |
commit | bc5a3d1d7c79207f65dff72b2549144486d1917d (patch) | |
tree | 57ee5b3e873bd47486b7b103b42d415ba515bb88 /source/mongodb.py | |
parent | Added Whoosh in the documentation (requirements + installation). (diff) | |
download | newspipe-bc5a3d1d7c79207f65dff72b2549144486d1917d.tar.gz newspipe-bc5a3d1d7c79207f65dff72b2549144486d1917d.tar.bz2 newspipe-bc5a3d1d7c79207f65dff72b2549144486d1917d.zip |
Removed the MongoDB index on articles content.
Diffstat (limited to 'source/mongodb.py')
-rw-r--r-- | source/mongodb.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/source/mongodb.py b/source/mongodb.py index 23a5b5ad..c32d1428 100644 --- a/source/mongodb.py +++ b/source/mongodb.py @@ -20,9 +20,9 @@ # along with this program. If not, see <http://www.gnu.org/licenses/> __author__ = "Cedric Bonhomme" -__version__ = "$Revision: 0.7 $" +__version__ = "$Revision: 0.8 $" __date__ = "$Date: 2012/03/03 $" -__revision__ = "$Date: 2013/04/02 $" +__revision__ = "$Date: 2013/06/25 $" __copyright__ = "Copyright (c) Cedric Bonhomme" __license__ = "GPLv3" @@ -46,9 +46,6 @@ class Articles(object): self.db[collection_name].ensure_index([("article_date", pymongo.DESCENDING)], \ name="date_index", unique=False, \ background=True) - self.db[collection_name].ensure_index([('article_content', pymongo.ASCENDING)], \ - name="content_index", unique=False, \ - background=True) def add_collection(self, new_collection): """ |