Skip to content

Commit

Permalink
totalHits to nullable
Browse files Browse the repository at this point in the history
Signed-off-by: Finn Carroll <carrofin@amazon.com>
  • Loading branch information
finnegancarroll committed Aug 28, 2024
1 parent 7e6381c commit 8afa24c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/src/main/java/org/opensearch/search/SearchHits.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,10 @@ public static SearchHits empty(boolean withTotalHits) {
public static final SearchHit[] EMPTY = new SearchHit[0];

protected SearchHit[] hits;
protected TotalHits totalHits;
protected float maxScore;
@Nullable
protected TotalHits totalHits;
@Nullable
protected SortField[] sortFields;
@Nullable
protected String collapseField;
Expand Down

0 comments on commit 8afa24c

Please sign in to comment.