aboutsummaryrefslogtreecommitdiff
path: root/source/pyAggr3g470r.py
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-06-24 21:35:56 +0200
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-06-24 21:35:56 +0200
commit860030540c8df782f3e550a911a9ba6d7d51de71 (patch)
treeab78e2df551ebf4f1a68dee3dc897abe52a8af3b /source/pyAggr3g470r.py
parentAdded index_base view in order to launch the indexing. (diff)
downloadnewspipe-860030540c8df782f3e550a911a9ba6d7d51de71.tar.gz
newspipe-860030540c8df782f3e550a911a9ba6d7d51de71.tar.bz2
newspipe-860030540c8df782f3e550a911a9ba6d7d51de71.zip
Integration of the new search module.
Diffstat (limited to 'source/pyAggr3g470r.py')
-rwxr-xr-xsource/pyAggr3g470r.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/pyAggr3g470r.py b/source/pyAggr3g470r.py
index f065b871..4f006571 100755
--- a/source/pyAggr3g470r.py
+++ b/source/pyAggr3g470r.py
@@ -169,7 +169,11 @@ class pyAggr3g470r(object):
feed_id = None
if param == "Feed":
feed_id, _, query = value.partition(':')
- search_result = self.mongo.full_search(param)
+ search_result = defaultdict(list)
+ results = search.search(param)
+ for result in results:
+ article = self.mongo.get_articles(result[0], result[1])
+ search_result[result[0]].append(article)
tmpl = lookup.get_template("search.html")
return tmpl.render(search_result=search_result, query=query, feed_id=feed_id, mongo=self.mongo)
bgstack15