[Xapian-discuss] "Using document values in search"

Daniel Andersson daniel at septum.org
Sat Apr 21 18:26:15 BST 2007


> However, Xapian SVN HEAD has Xapian::ValueRangeProcessor, which allows
> these sort of range searches to be implemented very easily.  It's all
> integrated with the QueryParser class, so you can set things up so  
> that
> the user can just enter the range as part of their query string (the
> syntax used is `start..end', in common with a number of other search
> engines which support range searches).
>
> This comes with some predefined subclasses, which allow handling of
> date, number (with a prefix or suffix), and string ranges - e.g.
> `$123..248', `02/04/2007..21/04/2007', `5..12kg', etc without  
> having to
> create your own subclasses.

Sounds perfect, thanks for your help!

Kind regards,
Daniel



More information about the Xapian-discuss mailing list