You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Adrien Grand (JIRA)" <ji...@apache.org> on 2015/07/15 23:09:05 UTC
[jira] [Commented] (LUCENE-6681) SortingMergePolicy to override
MergePolicy.size(...)
[ https://issues.apache.org/jira/browse/LUCENE-6681?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14628734#comment-14628734 ]
Adrien Grand commented on LUCENE-6681:
--------------------------------------
Maybe we could do something like:
{code}
public void testSizeOverridden() throws Exception {
// make sure the method exists on MergePolicy
MergePolicy.class.getDeclaredMethod("size", SegmentCommitInfo.class, IndexWriter.class);
try {
// and is overridden on SortingMergePolicy
SortingMergePolicy.class.getDeclaredMethod("size", SegmentCommitInfo.class, IndexWriter.class);
} catch (NoSuchMethodException e) {
fail("SortingMergePolicy needs to override size(SegmentCommitInfo, IndexWriter)");
}
}
{code}
> SortingMergePolicy to override MergePolicy.size(...)
> ----------------------------------------------------
>
> Key: LUCENE-6681
> URL: https://issues.apache.org/jira/browse/LUCENE-6681
> Project: Lucene - Core
> Issue Type: Bug
> Reporter: Christine Poerschke
> Priority: Minor
>
> github pull request to follow
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org