[Xapian-discuss] query within value range

Mark Clarkson mark.clarkson at smorg.co.uk
Tue Jun 5 14:30:52 BST 2007


On Mon, 2007-06-04 at 08:49 -0700, Andrey wrote:
> HI
> 
> how to limit the search result within a range of value?
> 
> example:
> xapian.Query(op_or , "Microsoft", "database")
> 
> how to limit the result in value(0). from 020397 .. to 020498
> 
> thanks
> 
> Andrey

Hi,
I'm also having problems finding out how to do this. If I put the query
'date:20060501..20070503' through QueryParser I get
'D20060501..20070503' for a boolean prefix query, but I don't see how to
connect this with a particular value index, assuming I had the date
stored as a value.

So just a couple questions:

  Do range queries work for boolean terms or values?
  How do I make it work in C++?

I feel like I'm missing something obvious as this is such a major new
feature the docs must be somewhere, it should be simple, and I'm surely
just being dumb!

Cheers
Mark.




More information about the Xapian-discuss mailing list