[Xapian-discuss] Request for enhancement
Olly Betts
olly at survex.com
Tue Sep 5 03:30:07 BST 2006
On Fri, Aug 25, 2006 at 12:08:53AM +0100, Olly Betts wrote:
> On Mon, Jul 31, 2006 at 08:18:12AM -0400, Jim Lynch wrote:
> > cats NEAR 5 dogs
> >
> > Where NEAR permits a word proximity value.
>
> It's not too hard to achieve this - Xapian::Query supports it, so it's
> just the QueryParser which needs to be taught to understand it.
I've now implemented this. I went for the syntax used by some other
search engines:
cats NEAR/5 dogs
And while I was at it, I also added "ADJ" (like "NEAR", but the words
must also appear in matching documents in the same order as they do in
the query).
Cheers,
Olly
More information about the Xapian-discuss
mailing list