[Python-checkins] r88947 - tracker/roundup-src/roundup/backends/indexer_xapian.py
r.david.murray
python-checkins at python.org
Sat Apr 14 01:45:56 CEST 2012
Author: r.david.murray
Date: Sat Apr 14 01:45:55 2012
New Revision: 88947
Log:
xapian search was only returning the first 10 hits. Return them all.
And the hits returned included file content matches, which get filtered out, so
most of our searches were getting pretty anemic result lists.
Modified:
tracker/roundup-src/roundup/backends/indexer_xapian.py
Modified: tracker/roundup-src/roundup/backends/indexer_xapian.py
==============================================================================
--- tracker/roundup-src/roundup/backends/indexer_xapian.py (original)
+++ tracker/roundup-src/roundup/backends/indexer_xapian.py Sat Apr 14 01:45:55 2012
@@ -108,7 +108,7 @@
query = xapian.Query(xapian.Query.OP_AND, terms)
enquire.set_query(query)
- matches = enquire.get_mset(0, 10)
+ matches = enquire.get_mset(0, database.get_doccount())
return [tuple(m.document.get_data().split(':'))
for m in matches]
More information about the Python-checkins
mailing list