You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2014/03/17 20:31:45 UTC

[jira] [Commented] (LUCENE-5481) IndexWriter.forceMerge may run unneeded merges

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

ASF subversion and git services commented on LUCENE-5481:
---------------------------------------------------------

Commit 1578528 from [~mikemccand] in branch 'dev/branches/lucene_solr_4_7'
[ https://svn.apache.org/r1578528 ]

LUCENE-5481: merge back to 47x

> 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, 5.0, 4.7.1
>
>         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.2#6252)

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