Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/olpc/datastore/xapianindex.py3
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