[Xapian-discuss] QueryParser and ValueRanges
Olly Betts
olly at survex.com
Sat Oct 13 04:33:18 BST 2012
On Wed, Sep 16, 2009 at 06:31:47PM +0200, Stefan Demharter wrote:
> If i use QueryParser as in the file attached, i don't get the desired
> results - i.e. the query is not always a single value-range query.
>
> The results are:
> a..b => Xapian::Query(VALUE_RANGE 1 a b)
> a/b..b => Xapian::Query(VALUE_RANGE 1 a/b b)
> a_d..b => Xapian::Query(VALUE_RANGE 1 a_d b)
> a$d..b => Xapian::Query(VALUE_RANGE 1 a$d b)
> a.d..b => Xapian::Query(VALUE_RANGE 1 a.d b)
> a,d..b => Xapian::Query(VALUE_RANGE 1 a,d b)
> a+d..b => Xapian::Query((a:(pos=1) FILTER VALUE_RANGE 1 d b))
> a;d..b => Xapian::Query((a:(pos=1) FILTER VALUE_RANGE 1 d b))
> a*b..b => Xapian::Query((a:(pos=1) FILTER VALUE_RANGE 1 b b))
> a#d..b => Xapian::Query((a:(pos=1) FILTER VALUE_RANGE 1 d b))
> "a b"..b => Xapian::Query(((a:(pos=1) PHRASE 2 b:(pos=2)) FILTER
> VALUE_RANGE 1 b))
>
> As you can see the QueryParser works as expected for the first 6
> queries. But the last 4 queries aren't parsed as expected, even if I
> quote the search text. Is this a bug?
I'd say it is a bug - can you open a ticket on trac.xapian.org please?
Cheers,
Olly
More information about the Xapian-discuss
mailing list