fix javadoc of SearchRequestBuilder#setTrackTotalHits (#42219)

This commit is contained in:
Jim Ferenczi 2019-05-28 22:11:34 +02:00 committed by jimczi
parent ace96a2b6e
commit 267e5a1110
1 changed files with 4 additions and 2 deletions

View File

@ -378,7 +378,9 @@ public class SearchRequestBuilder extends ActionRequestBuilder<SearchRequest, Se
}
/**
* 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);
@ -386,7 +388,7 @@ public class SearchRequestBuilder extends ActionRequestBuilder<SearchRequest, Se
}
/**
* 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);