[Xapian-discuss] How to choose the proximity between search words

James Aylett james-xapian at tartarus.org
Thu Dec 22 15:16:25 GMT 2011


On 22 Dec 2011, at 14:36, Nat wrote:

> So thanks to James and OP_NEAR operator, I can search for terms within 10 words
> of each other. What I'd like is to choose the number of words : 10, 20, 50... Is
> that possible?


Nat — this is what the Query parameter is used for with OP_NEAR. It's called the "window" that the near operator works over.

J

-- 
 James Aylett
 talktorex.co.uk - xapian.org - devfort.com




More information about the Xapian-discuss mailing list