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

Luc Vanlerberghe commented on LUCENE-7064:
------------------------------------------

I just realized I pass the arrays from the builder to the query as is without 
copying them, so any modification to the builder modifies the query as well.
I will update the PR in a moment...

> Make MultiPhraseQuery immutable
> -------------------------------
>
>                 Key: LUCENE-7064
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7064
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: core/search
>            Reporter: Luc Vanlerberghe
>            Priority: Minor
>             Fix For: master, 6.0
>
>
> See LUCENE-6531
> Mutable queries are an issue for automatic filter caching since modifying a 
> query after it has been put into the cache will corrupt the cache. We should 
> make all queries immutable (up to the boost) to avoid this issue.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to