Skip to content

Commit

Permalink
Hardcode doc ID to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
vim345 committed Mar 21, 2024
1 parent 86eda24 commit 1521755
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ public abstract class RuntimeScript {
private final Map<String, Object> params;
private final SegmentDocLookup segmentDocLookup;

private static final int DOC_UNSET = -1;
private int docId = DOC_UNSET;

// names for parameters to execute
public static final String[] PARAMETERS = new String[] {};

Expand Down Expand Up @@ -67,6 +70,7 @@ public Map<String, Object> getParams() {

/** Get doc values for the current document. */
public Map<String, LoadedDocValues<?>> getDoc() {
setDocId(0);
return segmentDocLookup;
}

Expand Down

0 comments on commit 1521755

Please sign in to comment.