From bc5a3d1d7c79207f65dff72b2549144486d1917d Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Tue, 25 Jun 2013 08:18:19 +0200 Subject: Removed the MongoDB index on articles content. --- source/mongodb.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'source/mongodb.py') 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 __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): """ -- cgit