Skip to content

Commit

Permalink
remove immutable map init
Browse files Browse the repository at this point in the history
Signed-off-by: Dharin Shah <8616130+Dharin-shah@users.noreply.github.com>
  • Loading branch information
Dharin-shah committed Feb 1, 2024
1 parent 0bdfa7d commit 3418647
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/main/java/org/opensearch/search/SearchHit.java
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public final class SearchHit implements Writeable, ToXContentObject, Iterable<Do

private SearchSortValues sortValues = SearchSortValues.EMPTY;

private Map<String, Float> matchedQueries = Collections.emptyMap();
private Map<String, Float> matchedQueries = new HashMap<>();

private Explanation explanation;

Expand Down

0 comments on commit 3418647

Please sign in to comment.