[Xapian-discuss] Proximity in Xapian?
Olly Betts
olly at survex.com
Wed Dec 6 06:19:56 GMT 2006
On Tue, Dec 05, 2006 at 09:46:45PM -0800, Philip Neustrom wrote:
> Another, probably more general, question would be: How can
> proximity-weighted searches be done with Xapian?
You could take a proximity-weighted query for "foo" and "bar" and
generate a query like:
foo AND bar AND (foo NEAR/5 bar)
That would match all documents with both "foo" and "bar" in, but give
more weight to those where they occurred within 5 words of each other.
Cheers,
Olly
More information about the Xapian-discuss
mailing list