[ 
https://issues.apache.org/jira/browse/LUCENE-3272?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13058191#comment-13058191
 ] 

Robert Muir commented on LUCENE-3272:
-------------------------------------

This is really important I think, we should eventually consolidate all the QPs 
across lucene-core, contrib, and solr into a module.

I think its also important that we do this so that eventually we could 
hopefully move core queries into the queries module, and finally add all the 
cool stuff to the Lucene QP that is "missing" (positional stuff like NEAR, 
function queries, join, ...)

I think most tests only use the QP for convenience, maybe just make a REALLY 
REALLY simple MockQueryParser that is basically a String.split() for these 
tests for convenience? Then it would analyze the terms and make a boolean 
query... anything else more complicated (e.g. phrasequery) could just be 
explicitly instantiated?




> Consolidate Lucene's QueryParsers into a module
> -----------------------------------------------
>
>                 Key: LUCENE-3272
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3272
>             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: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to