Skip to content

Commit

Permalink
return singleton reader mergespec in NoMergePolicy
Browse files Browse the repository at this point in the history
  • Loading branch information
vigyasharma committed Mar 15, 2022
1 parent d2eb661 commit 84cfe00
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@ public MergeSpecification findMerges(

@Override
public MergeSpecification findMerges(List<CodecReader> readers) throws IOException {
return null;
// addIndexes(CodecReader...) now uses MergePolicy and MergeScheduler to add
// provided readers (LUCENE-10216). We retain the default behavior here to enable
// addIndexes for consumers like IndexRearranger.
// This does not merge existing segments, but uses SegmentMerger to add
// new incoming readers to the index.
return super.findMerges(readers);
}

@Override
Expand Down

0 comments on commit 84cfe00

Please sign in to comment.