[Xapian-discuss] Queryparser and Boolean
Colin Bell
colinabell at gmail.com
Wed Apr 9 15:13:05 BST 2008
Hi Olly
Not chasing, I promise, that would be rude. Just wondering if you had
any luck with this one.
Xapian::Query((pension:(pos=1) OR fund:(pos=2) OR barclay:(pos=4) OR
bank:(pos=5)))
for the query "(pension funds) AND (barclays bank)"
It looks like the AND is parsed as an OR ?
On 7 Apr 2008, at 15:31, Olly Betts wrote:
> It can be helpful to see what the query you get is:
>
> cout << query.get_description() << endl;
>
> Trying out similar queries, it looks like there's an odd bug here and
> the first term in the first bracket is being eaten by something (but
> I don't get the same query, although perhaps the two queries without
> `a' give you the same results).
>
> Anyway, I'll investigate.
>
> Cheers,
> Olly
More information about the Xapian-discuss
mailing list