Skip to content

Commit

Permalink
fix boolean null check
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 2, 2024
1 parent 9487a23 commit 67b0bc3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1446,8 +1446,8 @@ public XContentBuilder innerToXContent(XContentBuilder builder, Params params) t
builder.field(TRACK_SCORES_FIELD.getPreferredName(), true);
}

if (includeNamedQueriesScore) {
builder.field(INCLUDE_NAMED_QUERIES_SCORE.getPreferredName(), true);
if (includeNamedQueriesScore != null) {
builder.field(INCLUDE_NAMED_QUERIES_SCORE.getPreferredName(), includeNamedQueriesScore);
}

if (trackTotalHitsUpTo != null) {
Expand Down

0 comments on commit 67b0bc3

Please sign in to comment.