diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-06-24 21:35:56 +0200 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-06-24 21:35:56 +0200 |
commit | 860030540c8df782f3e550a911a9ba6d7d51de71 (patch) | |
tree | ab78e2df551ebf4f1a68dee3dc897abe52a8af3b /source/pyAggr3g470r.py | |
parent | Added index_base view in order to launch the indexing. (diff) | |
download | newspipe-860030540c8df782f3e550a911a9ba6d7d51de71.tar.gz newspipe-860030540c8df782f3e550a911a9ba6d7d51de71.tar.bz2 newspipe-860030540c8df782f3e550a911a9ba6d7d51de71.zip |
Integration of the new search module.
Diffstat (limited to 'source/pyAggr3g470r.py')
-rwxr-xr-x | source/pyAggr3g470r.py | 6 |
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) |