[Xapian-discuss] Re: Possible bug with multiple prefixed and quoted terms?

Mike Hsu mhsu at freeshell.org
Tue Jul 11 15:02:17 BST 2006


Olly Betts <olly <at> survex.com> writes:

> 
> On Tue, Jul 11, 2006 at 05:25:49AM +0000, Mike Hsu wrote:
> > Olly Betts <olly <at> survex.com> writes:
> > > http://www.oligarchy.co.uk/xapian/patches/queryparser_internal.cc
> > 
> > This patch doesn't seem to be working for me.
> 
> Ah, you'll also need to update this file so that everything is
> consistent.  Sorry I didn't notice before:
> 
> http://www.oligarchy.co.uk/xapian/patches/queryparser_token.h
> 
> Cheers,
>     Olly
> 

That works much better!  It passes my original test cases.

Does a period (.) in a quoted search term have a special meaning?  I thought it
was converted to a space and used to split words, but I may have imagined
that.  Also, it appears to subvert prefix substitution.

$ ./omega 'P=author:"mencken, henry louis"'    # OK
Xapian::Query((Amencken:(pos=1) PHRASE 3 Ahenri:(pos=2) PHRASE 3 Aloui:(pos=3)))

$ ./omega 'P=author:"mencken, h.l."'
Xapian::Query((author:(pos=1) OR mencken:(pos=2) OR (h:(pos=3) PHRASE 2
l:(pos=4))))






More information about the Xapian-discuss mailing list