aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-06-24 21:37:07 +0200
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-06-24 21:37:07 +0200
commit9ce11c36411c7ea6a725f83c7d0dd11cfb94bd8e (patch)
treecbd935beb6ff4f9bc90e9401ff542769f1f19b6c
parentIntegration of the new search module. (diff)
downloadnewspipe-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.py2
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__":
bgstack15