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

James Aylett james-xapian at tartarus.org
Sun Nov 9 14:56:51 GMT 2008


On Sun, Nov 09, 2008 at 02:24:37PM +0000, Olly Betts 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).

Hmm, good point. This is all of course mentioned in the glossary; I
wonder if entries in there should be linked to the relevant more
detailed docs (thinking of sorting and valueranges here).

J

-- 
/--------------------------------------------------------------------------\
  James Aylett                                                  xapian.org
  james at tartarus.org                               uncertaintydivision.org



More information about the Xapian-discuss mailing list