[
https://issues.apache.org/jira/browse/LUCENE-3273?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13059579#comment-13059579
]
Robert Muir commented on LUCENE-3273:
-------------------------------------
after reviewing the core tests, I think there is really not that many tests
using the queryparser at all.
in fact it seems the only 'non-trivial' queries being built are inside the
explanations tests (e.g. more than just a term, boolean, or phrase or
whatever), if these are too laborious to make manually, maybe we can just have
whatever is needed in the base TestExplanations... but I think it would be good
to build queries directly in most places in general.
> Convert Lucene Core tests over to a simple MockQueryParser
> ----------------------------------------------------------
>
> Key: LUCENE-3273
> URL: https://issues.apache.org/jira/browse/LUCENE-3273
> Project: Lucene - Java
> Issue Type: Sub-task
> Components: core/other
> Reporter: Chris Male
> Attachments: LUCENE-3273.patch, LUCENE-3273_testboolean2.patch
>
>
> Most tests use Lucene Core's QueryParser for convenience. We want to
> consolidate it into a QP module which we can't have as a dependency. We
> should add a simple MockQueryParser which does String.split() on the query
> string, analyzers the terms and builds a BooleanQuery if necessary. Any more
> complex Queries (such as phrases) should be done programmatically.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]