[Xapian-discuss] QueryParser is strange with boolean filter
Olly Betts
olly at survex.com
Thu Apr 13 14:46:24 BST 2006
On Thu, Apr 13, 2006 at 11:37:44AM +0900, Sungsoo Kim wrote:
> Case D: ?
> $ python search.py -v cup -XTYPE:H +XTYPE:V
> Performing query 'Xapian::Query((cup:(pos=1) FILTER (XTYPE:H AND XTYPE:V)))'
>
> Case E: ?
> $ python search.py -v cup +XTYPE:H -XTYPE:V
> Performing query 'Xapian::Query((cup:(pos=1) FILTER (XTYPE:H AND XTYPE:V)))'
The problem is that there's no case to handle "+XTYPE:H" so the
QueryParser goes into its fallback mode (assuming this is pasted text)
and strips the "+" and "-" signs.
Could you confirm that this patch fixes it:
http://www.oligarchy.co.uk/xapian/patches/queryparser-love-filter.patch
You'll need to apply it in the queryparser subdirectory.
Cheers,
Olly
More information about the Xapian-discuss
mailing list