[KinoSearch] RangeQuery
Marvin Humphrey
marvin at rectangular.com
Mon Jan 11 08:29:32 PST 2010
On Mon, Jan 11, 2010 at 09:43:16AM -0600, Peter Karman wrote:
> Is there support in KinoSearch::QueryParser for building RangeQuery
> objects? Something like:
>
> myfield:foo..bar
>
> or the like?
Not there.
> If there is not support, should I pursue adding such?
Not to this QueryParser. Yonik Seely (Solr) and I discussed query languages
at ApacheCon, and we concluded that you need two different parsers: a DWIM
version for users, and a full-featured, strict one for programmers. The
current parser is a DWIM version, and it is designed to handle only the syntax
that is nearly universal across typical web search interfaces. No such syntax
is common for range queries -- sites tend to use "advanced search" interfaces
for that, with extra form elements.
I'd be up for adding a second parser that not only supported range queries,
but MatchAllQuery, NoMatchQuery, boosts, etc. However, the code for the
current one is awfully convoluted, and I don't think it's a good idea to fork
it and start adding features. I've been considering trying something with
Antlr, but up till now it's been a lower priority than porting stuff to Lucy.
Marvin Humphrey
More information about the kinosearch
mailing list