From 860030540c8df782f3e550a911a9ba6d7d51de71 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Mon, 24 Jun 2013 21:35:56 +0200 Subject: Integration of the new search module. --- source/pyAggr3g470r.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source/pyAggr3g470r.py') 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) -- cgit