Skip to content

Commit

Permalink
fix javadoc of SearchRequestBuilder#setTrackTotalHits (#42219)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimczi committed May 28, 2019
1 parent ace96a2 commit 267e5a1
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -378,15 +378,17 @@ public SearchRequestBuilder setTrackScores(boolean trackScores) {
}

/**
* Indicates if the total hit count for the query should be tracked. Defaults to {@code true}
* Indicates if the total hit count for the query should be tracked. Requests will count total hit count accurately
* up to 10,000 by default, see {@link #setTrackTotalHitsUpTo(int)} to change this value or set to true/false to always/never
* count accurately.
*/
public SearchRequestBuilder setTrackTotalHits(boolean trackTotalHits) {
sourceBuilder().trackTotalHits(trackTotalHits);
return this;
}

/**
* Indicates if the total hit count for the query should be tracked. Defaults to {@code true}
* Indicates the total hit count that should be tracked accurately or null if the value is unset. Defaults to 10,000.
*/
public SearchRequestBuilder setTrackTotalHitsUpTo(int trackTotalHitsUpTo) {
sourceBuilder().trackTotalHitsUpTo(trackTotalHitsUpTo);
Expand Down

0 comments on commit 267e5a1

Please sign in to comment.