You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Shai Erera (JIRA)" <ji...@apache.org> on 2013/03/14 14:30:13 UTC
[jira] [Commented] (LUCENE-4833) Fix default MergePolicy in
IndexWriterConfig
[ 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-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org