[
https://issues.apache.org/jira/browse/LUCENE-6824?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael McCandless updated LUCENE-6824:
---------------------------------------
Attachment: LUCENE-6824.patch
Patch.
I tackle the {{MatchNoDocsQuery}}, {{TermQuery}}, {{PhraseQuery}} and
{{MultiPhraseQuery}} cases.
I think it would also be possible to e.g. sometimes rewrite to union of
{{PhraseQuery}} but I'm not sure what cases we should do that for.
> TermAutomatonQuery should rewrite to a simpler query when possible
> ------------------------------------------------------------------
>
> Key: LUCENE-6824
> URL: https://issues.apache.org/jira/browse/LUCENE-6824
> Project: Lucene - Core
> Issue Type: Improvement
> Reporter: Michael McCandless
> Assignee: Michael McCandless
> Fix For: Trunk, 5.4
>
> Attachments: LUCENE-6824.patch
>
>
> Spinoff from LUCENE-6664.
> I think {{TermAutomatonQuery}} would be easier to integrate into query
> parsers if you could simply use it always and it would rewrite to simpler /
> faster queries when possible.
> This way, when a query parser is confronted with a phrase query requested by
> the user, it can just make a {{TermAutomatonQuery}} and run that.
> But the non-explicit phrase query case is still tricky...
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]