[Xapian-discuss] Request for enhancement

Jim Lynch jim at fayettedigital.com
Tue Sep 5 10:02:55 BST 2006


Thanks, Olly,

That really helps.

Jim.
Olly Betts wrote:
> 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