[
https://issues.apache.org/jira/browse/LUCENE-5481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13915772#comment-13915772
]
ASF subversion and git services commented on LUCENE-5481:
---------------------------------------------------------
Commit 1572942 from [~jpountz] in branch 'dev/trunk'
[ https://svn.apache.org/r1572942 ]
LUCENE-5481: Don't run unnecessary merges in IndexWriter.forceMerge.
> IndexWriter.forceMerge may run unneeded merges
> ----------------------------------------------
>
> Key: LUCENE-5481
> URL: https://issues.apache.org/jira/browse/LUCENE-5481
> Project: Lucene - Core
> Issue Type: Bug
> Reporter: Adrien Grand
> Assignee: Adrien Grand
> Priority: Minor
> Fix For: 4.8
>
> Attachments: LUCENE-5481.patch
>
>
> I was running some tests and was surprised that {{IndexWriter.forceMerge}}
> caused the index to be merged even when the index contains a single segment
> with no deletions.
> This is due to {{MergePolicy.isMerged}} which always returns false with the
> default configuration although merge policies rely on it to know whether a
> single-segment index should be merged.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]