lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <>
Subject [jira] [Commented] (LUCENE-3272) Consolidate Lucene's QueryParsers into a module
Date Fri, 01 Jul 2011 11:02:28 GMT


Michael McCandless commented on LUCENE-3272:

Big +1!  We've needed query parsing factored out for a loooong time.  And cutting tests over
to a new MockQP, and then simply moving (but not merging) all QPs together to a module, sounds
like great first steps.

Note that the FieldType work (at least as currently planned/targetted) isn't a schema -- it's
really just a nicer API for working with documents.  Ie, nothing is persisted, nothing checks
that 2 docs have the fields / types, etc.

Still, it would be great to pull Solr's QP in and somehow abstract the parts that require
access to Solr's schema.

> Consolidate Lucene's QueryParsers into a module
> -----------------------------------------------
>                 Key: LUCENE-3272
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: modules/queryparser
>            Reporter: Chris Male
> Lucene has a lot of QueryParsers and we should have them all in a single consistent place.
> The following are QueryParsers I can find that warrant moving to the new module:
> - Lucene Core's QueryParser
> - AnalyzingQueryParser
> - ComplexPhraseQueryParser
> - ExtendableQueryParser
> - Surround's QueryParser
> - PrecedenceQueryParser
> - StandardQueryParser
> - XML-Query-Parser's CoreParser
> All seem to do a good job at their kind of parsing with extensive tests.
> One challenge of consolidating these is that many tests use Lucene Core's QueryParser.
 One option is to just replicate this class in src/test and call it TestingQueryParser.  Another
option is to convert all tests over to programmatically building their queries (seems like
alot of work).

This message is automatically generated by JIRA.
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message