'How can I add refresh or conflict property
I wanted to add the query parameter ?refresh=true or ?conflict=true query parameter using Jest client SDK of java but I see setURI method of Jest client has protected access.
How can I able to set the URI and query param as jest client setURI method has protected access?
Solution 1:[1]
You can achieve that with
IndexRequest.setRefreshPolicy(WriteRequest.RefreshPolicy.IMMEDIATE)
UpdateRequest.setRefreshPolicy(WriteRequest.RefreshPolicy.IMMEDIATE)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Val |
