[KinoSearch] FlatQueryParser

Marvin Humphrey marvin at rectangular.com
Sat Feb 27 21:16:32 PST 2010


On Sat, Feb 27, 2010 at 01:36:15PM -0600, Peter Karman wrote:
> So has anyone implemented the FlatQueryParser as described in
> KinoSearch::Docs::Cookbook::CustomQueryParser and implemented in in perl/sample
> in the source tree? 

Not published to CPAN, AFAIK.

> I need a QueryParser that supports wildcards and extended query syntax.

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.

> 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.  Is it your ambition to write a kitchen-sink complete
parser?

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.

Marvin Humphrey




More information about the kinosearch mailing list