RapTvin
(Tanvesh Takawale)
April 13, 2021, 4:27pm
1
I was going through the Rest High-Level Client and wasn't able to get a method to create a Point In Time via the java SDK of the client.
Is there a way to do it programmatically?
I went through a earlier post which addresses the same but it didn't have a reply please do revert back on this
dadoonet
(David Pilato)
April 13, 2021, 5:28pm
2
Welcome!
That's a very good question. I'm wondering if it has been added to the rest client as I can't see it here:
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
package org.elasticsearch.client;
import org.apache.http.HttpEntity;
import org.elasticsearch.ElasticsearchException;
import org.elasticsearch.ElasticsearchStatusException;
import org.elasticsearch.action.ActionListener;
import org.elasticsearch.action.ActionRequest;
import org.elasticsearch.action.ActionRequestValidationException;
import org.elasticsearch.action.admin.cluster.node.tasks.list.ListTasksResponse;
import org.elasticsearch.action.admin.cluster.storedscripts.DeleteStoredScriptRequest;
import org.elasticsearch.action.admin.cluster.storedscripts.GetStoredScriptRequest;
import org.elasticsearch.action.admin.cluster.storedscripts.GetStoredScriptResponse;
This file has been truncated. show original
@swallez Do you know?
RapTvin
(Tanvesh Takawale)
April 13, 2021, 7:34pm
3
I made use of the Low Level Client for now as I think this feature is not there in the High Level Client yet
dadoonet
(David Pilato)
April 13, 2021, 8:22pm
4
It looks like the SearchSourceBuilder accepts a PointInTimeBuilder. Could you check that?
RapTvin
(Tanvesh Takawale)
April 13, 2021, 8:34pm
5
I was unable to find any such method that accepts a PointInTimeBuilder
and the class PointIntTimeBuilder
isn't present
RapTvin
(Tanvesh Takawale)
April 13, 2021, 10:00pm
7
Yes, it was an issue with the package versioning but reached another barrier while paginating it with Java API.
The issue is clearly defined in this GitHub issue but there are no solutions yet can you help with that @jakelandis
Link: RestHighLevelClient: indicesOptions cannot be used with point in time, but is not nullable in SearchRequest · Issue #69974 · elastic/elasticsearch · GitHub
2 Likes
system
(system)
Closed
May 11, 2021, 10:00pm
8
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.