Skip to content

Commit 020503c

Browse files
committed
fix stream for unneeded float
1 parent bcce0b7 commit 020503c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/src/main/java/org/opensearch/search/SearchHit.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ public SearchHit(StreamInput in) throws IOException {
211211
} else {
212212
matchedQueries = new LinkedHashMap<>(size);
213213
for (int i = 0; i < size; i++) {
214-
matchedQueries.put(in.readString(), in.readFloat());
214+
matchedQueries.put(in.readString(), Float.NaN);
215215
}
216216
}
217217
// we call the setter here because that also sets the local index parameter

0 commit comments

Comments
 (0)