[Xapian-discuss] Enquire::get_mset() "first" and MatchDecider
Richard Boulton
richard at tartarus.org
Thu Dec 16 11:15:04 GMT 2010
On 16 December 2010 10:47, Jean-Francois Dockes <jf at dockes.org> wrote:
> This is a somewhat idle question about Enquire::get_mset(), possibly based
> on wrong assumptions on how Xapian works, but I would be grateful if
> someone satisfied my curiosity.
I suspect there is a wrong assumption here: what you may be missing is
that each call to get_mset() performs the search from scratch: the
Enquire object doesn't cache results.
> I had assumed that the "first" parameter referred to an index in the result
> set as filtered by the MatchDecider, but then it seems strange that you can
> change the latter from call to call.
The first parameter does indeed refer to an index in the filtered result set.
> Under what conditions can you change the mdecider used and keep a
> consistent (result set index)-to-(document id) correspondance for a given
> mdecider ? I'm guessing you have to restart from first==0 ? Shouldn't
> mdecider only be changeable as part of some kind of "rewind" operation
> then?
If you change the mdecider used, the document ID at any particular
index may indeed change: I'm not sure why this would be a problem
though, or what you mean by a "rewind" operation.
--
Richard
More information about the Xapian-discuss
mailing list