diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-06-24 21:37:07 +0200 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-06-24 21:37:07 +0200 |
commit | 9ce11c36411c7ea6a725f83c7d0dd11cfb94bd8e (patch) | |
tree | cbd935beb6ff4f9bc90e9401ff542769f1f19b6c | |
parent | Integration of the new search module. (diff) | |
download | newspipe-9ce11c36411c7ea6a725f83c7d0dd11cfb94bd8e.tar.gz newspipe-9ce11c36411c7ea6a725f83c7d0dd11cfb94bd8e.tar.bz2 newspipe-9ce11c36411c7ea6a725f83c7d0dd11cfb94bd8e.zip |
Removed the limit of results for the search with whoosh.
-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 2b0fea85..7eb4b065 100644 --- a/source/search.py +++ b/source/search.py @@ -70,7 +70,7 @@ def search(term): ix = open_dir(indexdir) with ix.searcher() as searcher: query = QueryParser("content", ix.schema).parse(term) - results = searcher.search(query) + results = searcher.search(query, limit=None) return [(article["feed_id"], article["article_id"]) for article in results] if __name__ == "__main__": |