[Xapian-discuss] Random results for the same query

Alexander Lind malte at webstay.org
Mon Aug 13 16:44:18 BST 2007


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.

Alec


More information about the Xapian-discuss mailing list