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/search.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/search.py')
-rw-r--r-- | source/search.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/search.py b/source/search.py index 218d2436..2b0fea85 100644 --- a/source/search.py +++ b/source/search.py @@ -71,7 +71,7 @@ def search(term): with ix.searcher() as searcher: query = QueryParser("content", ix.schema).parse(term) results = searcher.search(query) - return [article['title'] for article in results] + return [(article["feed_id"], article["article_id"]) for article in results] if __name__ == "__main__": # Point of entry in execution mode. |