Skip to content

Commit

Permalink
Adds Builder Function method in MSearch
Browse files Browse the repository at this point in the history
Signed-off-by: uri.nudelman <uriel.nudelman@offerup.com>
  • Loading branch information
uriofferup committed Aug 21, 2024
1 parent 949779d commit 320d4cf
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,16 @@ public final Builder cancelAfterTimeInterval(@Nullable Time value) {
return this;
}

/**
* The time after which the search request will be canceled.
* Request-level parameter takes precedence over cancel_after_time_interval cluster setting.
* <p>
* API name: {@code cancel_after_time_interval}
*/
public final Builder cancelAfterTimeInterval(Function<Time.Builder, ObjectBuilder<Time>> fn) {
return this.cancelAfterTimeInterval(fn.apply(new Time.Builder()).build());
}

/**
* If true, network roundtrips between the coordinating node and remote clusters
* are minimized for cross-cluster search requests.
Expand Down

0 comments on commit 320d4cf

Please sign in to comment.