![](/img/trans.png)
[英]ElasticSearch ReIndex Request not working in synchronous manner using Java Rest High Level Client
[英]How to make Point InTime API request of Elasticsearch using JAVA High Level REST client
It will be helpful if someone can point me to a way to execute Point In Time API request, which is newly introduced in Elasticsearch 7.10.1, from JAVA using REST high-level client or any other way in JAVA. (Transport 客戶端除外,因為它很快就會被棄用)
當高級 rest 客戶端沒有任何 api 的包裝器時,低級 rest 客戶端來救援。 您可以通過高級客戶端使用低級客戶端,如下所示:
String endPoint = "my-index-000001/_pit";
Request request = new Request("POST", endPoint);
request.addParameter("keep_alive", "1m");
Response response = highLevelClient.getLowLevelClient().performRequest(request);
然后使用response
object 提取出相關信息。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.