aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-03-05 06:57:37 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-03-05 06:57:37 +0100
commit99ae2185f0b5f6080b067fda0fab55c944c41091 (patch)
tree2713611eb7e7f315214f09f66be92d13a7b4400e /source
parenttypo (diff)
downloadnewspipe-99ae2185f0b5f6080b067fda0fab55c944c41091.tar.gz
newspipe-99ae2185f0b5f6080b067fda0fab55c944c41091.tar.bz2
newspipe-99ae2185f0b5f6080b067fda0fab55c944c41091.zip
Added TODO comment in mongodb.py
Diffstat (limited to 'source')
-rw-r--r--source/mongodb.py1
1 files changed, 1 insertions, 0 deletions
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)])
bgstack15