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

Shai Erera commented on LUCENE-5711:
------------------------------------

Note that this was changed in LUCENE-1763. At the time there were issues with 
some MPs that didn't treat it well, but I don't remember what issues. It also 
helped clean up the API, since I think most apps don't share an MP between 
writers. But then again, most people also don't write their own MPs, or 
interact with it directly, so the API is less of an issue. If it works and 
allows to share an MP between writers more easily, let's go for it.

> Pass IW to MergePolicy
> ----------------------
>
>                 Key: LUCENE-5711
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5711
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: core/index
>            Reporter: Simon Willnauer
>             Fix For: 4.9, 5.0
>
>         Attachments: LUCENE-5711.patch
>
>
> Related to LUCENE-5708 we keep state in the MP holding on to the IW which 
> prevents sharing the MP across index writers. Aside of this we should really 
> not keep state in the MP it should really only select merges without being 
> bound to the index writer.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to