[ https://issues.apache.org/jira/browse/LUCENE-4833?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13602266#comment-13602266 ]
Shai Erera commented on LUCENE-4833: ------------------------------------ I think that setCodec should also be modified then, to something like that: {code} if (codec == null) { codec = Codec.getDefault(); if (codec == null) { throw new NullPointerException(); } } {code} Just like the ctor does. And the NPE should include some message too (both in the ctor and setter). > 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