[Xapian-discuss] range query for terms

张吉财 zjc5415 at 163.com
Sat Mar 14 13:25:24 GMT 2015


first, thank you,xapian!

then I'd like to ask if it is possible to do a range query on terms(like the range query on values), or if it is just a wildcard(right truncation) match.

the case is searching ip address bettween  “10.10.0.0” and “10.10.255.255”
the user want :
1.   query "10.10.10.10" < ip < "10.10.10.12"  gives "10.10.10.11"
2.   query "*.*.*.10" gives all ip addresses ended with 10.

how can I achieve this?



More information about the Xapian-discuss mailing list