[ https://issues.apache.org/jira/browse/LUCENE-4833?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13602274#comment-13602274 ]
Adrien Grand commented on LUCENE-4833: -------------------------------------- My point is that if someone wants to use the default value, all he has to do is to never call the setter? Moreover users can't pass null to methods that expect primitive types (such as setMaxBufferedDocs) so throwing an exception when encountering null would be more consistent? > 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