[KinoSearch] FlatQueryParser
Peter Karman
peter at peknet.com
Mon Mar 1 22:03:56 PST 2010
Marvin Humphrey wrote on 2/27/10 11:16 PM:
> Be aware that FlatQueryParser is "flat" because it doesn't support nested
> parenthetical groups -- or any other logical groupings for that matter.
> Creating a parser than handles those will involve work not covered in the
> cookbook entry.
>
thanks for pointing that out before I dug in.
>> I see (e.g.) KSx::Search::WildCardQuery on CPAN, but no equivalent QueryParser.
>>
>> If no one else has this in the works, I'd be happy to do it, and am open to
>> naming suggestions (KSx::Search::QueryParser is the first thing to jump to mind).
>
> Have at it.
>
> As far as the name goes, that sounds like "the definitive" QueryParser...
> almost like KS didn't have one. It will likely be the first one people check
> out outside of core.
good point. I have opted to add a Search::Query::Dialect::KSx instead, with a
method to output the Dialect object as a KinoSearch query tree.
> Is it your ambition to write a kitchen-sink complete
> parser?
>
kitchen-sink-complete only insofar as it is Swish-e compatible.
Search::Query aims for polyglot query language compatibility. Basic supported
syntax is the same as KS, with the addition of ranges and some field
expansion/validation features.
> That'd be lovely if it was. I'm very interested in core KS providing building
> blocks and tutorials to support the development of alternate parsers, but I'm
> totally uninterested in the specifics of query language syntax.
cool. I'm finding the KinoSearch::Search::*Query stuff pretty straightforward.
--
Peter Karman . http://peknet.com/ . peter at peknet.com
More information about the kinosearch
mailing list