diff options
author | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2008-07-31 14:48:32 (GMT) |
---|---|---|
committer | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2008-07-31 18:16:45 (GMT) |
commit | 93b6a1a423dfd8331e1bfa4b43b55197b17e23cb (patch) | |
tree | 613b78bcc5fcf1d7799dc5027de926150f031fff | |
parent | b3581a05e55af9062d327685a5d78774d7af098e (diff) |
#7234 Request all the results so we get an accurate entry count.
-rw-r--r-- | src/olpc/datastore/xapianindex.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/olpc/datastore/xapianindex.py b/src/olpc/datastore/xapianindex.py index 888bd26..e8a5ee5 100644 --- a/src/olpc/datastore/xapianindex.py +++ b/src/olpc/datastore/xapianindex.py @@ -467,7 +467,8 @@ class IndexManager(object): if order_by: order_by = order_by[0] else: order_by = None - results = ri.search(q, start_index, end_index, sortby=order_by) + results = ri.search(q, start_index, end_index, sortby=order_by, + checkatleast=sys.maxint) count = results.matches_estimated # map the result set to model.Content items |