[Xapian-discuss] Xapian's definition of a field

Olly Betts olly at survex.com
Sun Nov 9 14:24:37 GMT 2008


On Thu, Nov 06, 2008 at 05:42:13PM +0000, James Aylett wrote:
> If you're using scriptindex, it'll add term prefixes for you if you
> tell it to. Doing it by hand is a bit more work, but entirely
> possible.

Xapian::TermGenerator can add prefixes for you if you're working at the
API level.

> On Thu, Nov 06, 2008 at 05:43:15PM +0200, Henry wrote:
> > Lastly, what is add_value(valueno, strvalue) for?  :-))  I can't  
> > figure it out.
> 
> Two things: most commonly (at least at the moment) for collapsing
> documents (so you only get one out of a set with the same thing for a
> given value number; you can also use them in sophisticated features
> like MatchSpy.

Sorting results by something other than relevance is a major use (I'd
guess more common than collapsing, but we don't have much to measure
such things by).

Cheers,
    Olly



More information about the Xapian-discuss mailing list