[Xapian-discuss] Changing weights per field
Olly Betts
olly at survex.com
Sun Dec 17 13:53:29 GMT 2006
On Fri, Dec 15, 2006 at 08:23:38PM -0600, InsaneToucan wrote:
> I have four fields which reference a PK in our DB that I'd like to index (in
> most weighted to least weighed order): full name, e-mail, title and
> location.
If you build the query yourself, you can set the wqf (within query
frequency) of each term in the query - it's an optional parameter to
the Query constructor which takes a term name.
Or you can do the work at index time by specifying a larger wdf
increment for terms from certain fields when calling
Document::add_posting() (or Document::add_term()).
Cheers,
Olly
More information about the Xapian-discuss
mailing list