[Xapian-discuss] OP_VALUE_RANGE problem

Fayland Lam fayland at gmail.com
Wed Mar 12 07:26:36 GMT 2008


hi, list. I'm new to Xapian.

I'm using Perl. and I tried something like
Search::Xapian::Query->new(OP_VALUE_RANGE, 1, 1, 99);
and it works fine for 1-99.

I just wonder how can I just set > 0?
Search::Xapian::Query->new(OP_VALUE_RANGE, 1, 1, 9999999999);
like?
and how about I want > 30 or < 20.
something like
Search::Xapian::Query->new(OP_VALUE_RANGE, 1, -999, 20);
Search::Xapian::Query->new(OP_VALUE_RANGE, 1, 30, 999999999);
with OP_OR?

Thanks in advance.

-- 
Fayland Lam // http://www.fayland.org/ 
Foorum based on Catalyst // http://www.foorumbbs.com/ 




More information about the Xapian-discuss mailing list