From 99ae2185f0b5f6080b067fda0fab55c944c41091 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Tue, 5 Mar 2013 06:57:37 +0100 Subject: Added TODO comment in mongodb.py --- source/mongodb.py | 1 + 1 file changed, 1 insertion(+) (limited to 'source/mongodb.py') diff --git a/source/mongodb.py b/source/mongodb.py index 7d593e46..38081780 100644 --- a/source/mongodb.py +++ b/source/mongodb.py @@ -230,6 +230,7 @@ class Articles(object): """ articles = {} for collection in self.get_all_feeds(): + # TODO: test the full text search. Not all words are found with the search function result = self.db[collection["feed_id"]].find({'article_content': {'$regex': term, "$options": 'i' }}) if result.count() != 0: articles[collection["feed_id"]] = result.sort([("article_date", pymongo.DESCENDING)]) -- cgit