* mu-query-xapian: support batchsize == 0; use the db->get_doccount in that case

This commit is contained in:
Dirk-Jan C. Binnema
2010-01-24 13:15:04 +02:00
parent cf6c5d0a84
commit 0b3de03d9d
2 changed files with 6 additions and 2 deletions

View File

@ -71,7 +71,9 @@ char* mu_query_xapian_version (MuQueryXapian *store);
* @param ascending if TRUE sort in ascending (A-Z) order, otherwise,
* sort in descending (Z-A) order
* @param batchsize the size of batches to receive; this is mainly for
* reasons - it's best to get the size one wants to show the user at once
* reasons - it's best to get the size one wants to show the user at once.
* If you pass '0' as the batchsize, mu will use the maximum size (the count
* of documents in the database)
*
* @return a MuMsgIterXapian instance you can iterate over, or NULL in
* case of error