Ram Peters
2007-Apr-01 20:29 UTC
[Xapian-discuss] Add Different Weights to Title, Description Fields
In Xapian how do you "Add Different Weights to Title, Description and Category Fields"? Thank you.
Olly Betts
2007-Apr-01 21:14 UTC
[Xapian-discuss] Add Different Weights to Title, Description Fields
On Sun, Apr 01, 2007 at 03:29:01PM -0400, Ram Peters wrote:> In Xapian how do you "Add Different Weights to Title, Description and > Category Fields"?You can do this by setting the "wdfinc" parameter when calling Document::add_posting() or Document::add_term(). Just pass different values when generating terms for the different fields. The default wdfinc is 1. Cheers, Olly