Skip to content

Commit

Permalink
fix issue in reindex for empty meta or documents
Browse files Browse the repository at this point in the history
  • Loading branch information
mdavis95 committed May 28, 2023
1 parent 07f1d15 commit 4e30513
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -653,8 +653,8 @@ protected boolean match(int doc) {
if (fullDocValues != null) {
fullDocValues.advanceExact(docId);
}
BytesRef meta = metaDocValues != null ? metaDocValues.binaryValue() : new BytesRef(BytesRef.EMPTY_BYTES);
BytesRef fullDoc = fullDocValues != null ? fullDocValues.binaryValue() : new BytesRef(BytesRef.EMPTY_BYTES);
BytesRef meta = metaDocValues != null ? metaDocValues.binaryValue() : null;
BytesRef fullDoc = fullDocValues != null ? fullDocValues.binaryValue() : null;
documentConsumer.accept(new ReIndexContainer(idDocValues.binaryValue(), meta, fullDoc));
}

Expand Down

0 comments on commit 4e30513

Please sign in to comment.