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

Shai Erera commented on LUCENE-4833:
------------------------------------

good catch. But why do you throw NPE? the rest of the setXYZ methods respect 
null by setting the default. I don't like that setMP is not consistent with the 
rest of the setters.
                
> Fix default MergePolicy in IndexWriterConfig
> --------------------------------------------
>
>                 Key: LUCENE-4833
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4833
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Adrien Grand
>            Assignee: Adrien Grand
>            Priority: Minor
>         Attachments: LUCENE-4833.patch
>
>
> Although the default merge policy is TieredMergePolicy (as documented in 
> IndexWriterConfig constructor), setMergePolicy assumes that the default is 
> LogByteSizeMergePolicy.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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

Reply via email to