aboutsummaryrefslogtreecommitdiff
path: root/source/mongodb.py
diff options
context:
space:
mode:
Diffstat (limited to 'source/mongodb.py')
-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