[ https://issues.apache.org/jira/browse/LUCENE-3272?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13058200#comment-13058200 ]
Robert Muir commented on LUCENE-3272: ------------------------------------- {quote} With Lucene's FieldType work coming up, maybe some of it can be offloaded to those. We can also work on inverting the APIs in some places, providing abstractions in others. {quote} I don't think we have to do all the work at once? Like, ideally however these problems are being solved (e.g. adding numericrange support to the QP is one example), we could eventually move the solr QPs to use this 'information' and maybe refactor how its own schema works... if it turns out stuff is really solr-specific and not generalizable then keep it in solr. But I think as a start, we can consolidate what is in lucene core and contrib, thats a ton of work in itself. > 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