[Xapian-discuss] Document weighting in 1.1

Richard Boulton richard at tartarus.org
Wed Sep 9 10:32:39 BST 2009


2009/9/9 double <ninive at gmx.at>

> John Wards schrieb:
> > ... and use a ValueWeightPostingSource to add this weight to the
> > standard weight of the document...
>
> Hello,
>
> Document-weights would be great!
> Do I understand  correctly, "ValueWeightPostingSource"
> is the only way to give weights to documents


It's not the only way, but it's the appropriate one for the situation you
describe.


> and this
> feature only works for "Query.OP_AND_MAYBE"?
>

No, it's not restricted to use with OP_AND_MAYBE, but again, if you're
simply wanting to boost weights, OP_AND_MAYBE is the appropriate operator to
use.

-- 
Richard


More information about the Xapian-discuss mailing list