[Xapian-discuss] Random results for the same query

Andreas Marienborg andreas at startsiden.no
Wed Aug 15 13:58:31 BST 2007


On Aug 13, 2007, at 5:44 PM, Alexander Lind wrote:

> Steije van Schelt wrote:
>> Charlie Hull wrote:
>>
>>
>>> I think the key word here is 'about' as in 'about 562 results'.  
>>> AFAIK
>>> to save time an exact number of results isn't calculated, so it's  
>>> not
>>> surprising that you're getting different numbers each time.
>>>
>>
>> I agree my choice of words was a bit funny...
>>
>> But still, fact remains that this hasn't occured before, even with  
>> the
>> same query on the database.
>>
>> I can't explain the fact that Xapian randomly gives correct or  
>> incorrect
>>  counters for the resultset for a single P query. The only thing that
>> has changed is that I've added documents to the index and changed
>> documents already in the index.
>>
>> My guess is that something became corrupt in the index, has anybody
>> experienced the same behaviour?
>>
>
> It sounds just like Charlie said, that its just the approximation  
> (which my xapian apps give as well).
> Why don't you try setting the minimum-documents-to-be-detected (I  
> can't remember whats its called in omega) to 1000. Then xapian will  
> count exactly how many results you get, as long as the total is  
> under 1000.
>

Where and how do I set this? I cant find anything on google about it  
except this mail.

- andreas



More information about the Xapian-discuss mailing list