[Xapian-discuss] Random results for the same query

Andreas Marienborg andreas at startsiden.no
Wed Aug 22 10:30:06 BST 2007


Ok thanks. Looking at the perl-bindings I don't really think its  
possible to set it there :/

It seems to munge the arguments by always inserting 0 for  
checkatleast. The docs for matches method seems to indicate I can set  
it, but the code only passes the arguments to get_mseg, which code  
says it inserts "checkatleast" as 0.

Olly? any suggestions?


- andreas


On Aug 15, 2007, at 5:39 PM, Alexander Lind wrote:

> Yep, I have done it (using the php bindings).
> The call is somewhat different in the perl bindings, but this is  
> what it looks like in php:
>
> $matches = $enquire->get_mset((int)$this->result_offset, (int)$this- 
> >result_limit, (int)$this->result_min_hits_verified);
>
> So result_offset and result_limit are just the chunk of the result  
> that I want to extract.
> result_min_hits_verified is the number you are after, I set it to
> result_limit * results_per_page  (the amount of results a user has  
> opted to see per page) by default, this ensures the nearest 10  
> 'more results' links are always accurate.
>
> Alec
>
> Andreas Marienborg wrote:
>>
>> On Aug 15, 2007, at 3:52 PM, Richard Boulton wrote:
>>
>>> Andreas Marienborg wrote:
>>>> Where and how do I set this? I cant find anything on google  
>>>> about it except this mail.
>>>
>>> Set the MINHITS CGI parameter: see docs/cgiparams.txt for more  
>>> information.
>>>
>>
>> Is this possible without omega? I use Search::Xapian (perl- 
>> bindings) with my own setup here
>>
>>
>> - andreas
>>
>>
>> _______________________________________________
>> Xapian-discuss mailing list
>> Xapian-discuss at lists.xapian.org
>> http://lists.xapian.org/mailman/listinfo/xapian-discuss
>>




More information about the Xapian-discuss mailing list