mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
add missing setPercolate method to UpdateRequestBuilder
This commit is contained in:
parent
bf36681e34
commit
43182f07fd
@ -152,6 +152,16 @@ public class UpdateRequestBuilder extends BaseRequestBuilder<UpdateRequest, Upda
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Causes the updated document to be percolated. The parameter is the percolate query
|
||||
* to use to reduce the percolated queries that are going to run against this doc. Can be
|
||||
* set to <tt>*</tt> to indicate that all percolate queries should be run.
|
||||
*/
|
||||
public UpdateRequestBuilder setPercolate(String percolate) {
|
||||
request.percolate(percolate);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void doExecute(ActionListener<UpdateResponse> listener) {
|
||||
client.update(request, listener);
|
||||
|
Loading…
x
Reference in New Issue
Block a user