[
https://issues.apache.org/jira/browse/LUCENE-8159?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16385268#comment-16385268
]
Adrien Grand commented on LUCENE-8159:
--------------------------------------
I understand why it helps in your case but searching over lots of fields is a
bad practice so I would rather not design APIs specifically to address this
problem. I don't like the idea of adding expert APIs to high-level queries like
PrefixQuery, WildcardQuery or TermRangeQuery: there should be a single way to
construct those queries and it should be simple.
> Add a copy constructor in AutomatonQuery to copy directly the compiled
> automaton
> --------------------------------------------------------------------------------
>
> Key: LUCENE-8159
> URL: https://issues.apache.org/jira/browse/LUCENE-8159
> Project: Lucene - Core
> Issue Type: Improvement
> Components: core/search
> Affects Versions: trunk
> Reporter: Bruno Roustant
> Assignee: David Smiley
> Priority: Major
> Attachments:
> 0001-Add-a-copy-constructor-in-AutomatonQuery-to-copy-dir.patch,
> LUCENE-8159.patch
>
>
> When the query is composed of multiple AutomatonQuery with the same automaton
> and which target different fields, it is much more efficient to reuse the
> already compiled automaton by copying it directly and just changing the
> target field.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]