Skip to content

Commit

Permalink
merge removals
Browse files Browse the repository at this point in the history
Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
  • Loading branch information
nknize committed Mar 15, 2022
1 parent e7af399 commit d35292a
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
import org.apache.lucene.search.TopDocs;
import org.apache.lucene.search.TopFieldCollector;
import org.apache.lucene.util.ArrayUtil;
import org.opensearch.Version;
import org.opensearch.common.bytes.BytesReference;
import org.opensearch.common.lucene.Lucene;
import org.opensearch.common.lucene.search.Queries;
Expand Down Expand Up @@ -247,7 +246,7 @@ private void fillParallelArray(ScoreDoc[] scoreDocs, ParallelArray parallelArray

private static Query operationsRangeQuery(long fromSeqNo, long toSeqNo) {
return new BooleanQuery.Builder().add(LongPoint.newRangeQuery(SeqNoFieldMapper.NAME, fromSeqNo, toSeqNo), BooleanClause.Occur.MUST)
.add(Queries.newNonNestedFilter(Version.CURRENT), BooleanClause.Occur.MUST) // exclude non-root nested docs
.add(Queries.newNonNestedFilter(), BooleanClause.Occur.MUST) // exclude non-root nested docs
.build();
}

Expand Down Expand Up @@ -289,8 +288,6 @@ private Translog.Operation readDocAsOp(int docIndex) throws IOException {
: SourceFieldMapper.NAME;
final FieldsVisitor fields = new FieldsVisitor(true, sourceField);
leaf.reader().document(segmentDocID, fields);
// todo: remove postProcess after removing types and uid from translog
fields.postProcess(mapperService);

final Translog.Operation op;
final boolean isTombstone = parallelArray.isTombStone[docIndex];
Expand Down

0 comments on commit d35292a

Please sign in to comment.