Does Xapian support query string like "(age: 1..25) OR (age: 35..50)"? or "(age: 1..25) - (age: 35..50)"?

Peter Van Dijk pvandijk at vision6.com
Sun Jan 17 23:00:46 GMT 2016


On 16 January 2016 at 19:15, 顾笑群 <shoutrain_goo at aliyun.com> wrote:

> Hi, All
> Does Xapian support query string like "(age: 1..25) OR (age: 35..50)"? or
> "(age: 1..25) - (age: 35..50)"?
> I want to get the results with age range from 1 to 25, 35 to 50.
>
> I tested, "(age: 1..25) OR (age: 35..50)"? or "(age: 1..25) - (age:
> 35..50)" doesn't work.
> Thanks
> Best wish-Rafael Gu
>


Sure does - look up 'value ranges' in the documentation - there's some good
examples of how to approach it in there.

-- 

Peter


More information about the Xapian-discuss mailing list