Questions tagged [elasticsearch-java-api-client]

13 questions
1
vote
1 answer

Bulk insert in elasticsearch using elasticsearch-java

I'm trying to bulk insert documents in elasticsearch using java with (elasticsearch-java). I checked official documentation of elasticsearch-java and found information around bulk indexing in index, and i'm able to insert bulk data in…
0
votes
1 answer

Java co.elastic/org.elasticsearch libraries difference

In Java, I can see there are 2 clients to work with elasticsearch: co.elastic and org.elasticsearch. I am not counting spring-data-elasticsearch here or any other top-level abstractions. These 2 libraries seemed to have very similar API, and even…
Mikhail2048
  • 1,715
  • 1
  • 9
  • 26
0
votes
1 answer

Is there a way to create an object of co.elastic.clients.elasticsearch._types.query_dsl.Query from a queryString?

I have a complex Elasticsearch String query which I don't want to create using Java classes. Is there a way I can achieve it so as to use it something like: Query query = getQueryFromString(queryString); …
0
votes
2 answers

Update of a record in elastic using elastic 8.7 javaclient

I attempted to add a couple new fields to an existing record in elastic search. The record is being updated, however all previously indexed fields have been cleared. Is there something am I doing wrong? Maven dependency
0
votes
1 answer

Elasticsearch new java API client gives error in bulk operation [jakarta.json.JsonException: Unable to get a JsonProvider]

I have elasticsearch 8.6.1 version installed. I'm trying to add data using java API client. Code snippet is : restClient = restClientBuilder.build(); client = new ElasticsearchClient(new RestClientTransport(restClient, new JacksonJsonpMapper()));…
0
votes
0 answers

How to implement aggregation with script query using SearchTemplateRequest with Elasticsearch 8.x version

I'm migrating my application from Elasticsearch 7.15 version to 8.x but I'm facing some issues while writing aggregation with script query using SearchTemplateRequest with Java API Client because after 7.15 version they removed some methods from the…
0
votes
1 answer

Which Java ES client should I use with ElasticSearch 7.6 cluster?

I want to use Java API client provided by ElasticSearch but I don't know if it would be compatible with my cluster. I saw there was ElasticSearch High Level REST client which has been deprecated for the new Java API client. I could find information…
0
votes
1 answer

Caused by: java.net.UnknownHostException while connecting to the Elastic Cloud instance

I am trying to connect to elastic cloud instance from my spring boot application. I want to index document from my application to elasticsearch instance. This is my configuration file @Configuration public class ESConfig { @Bean public…
0
votes
1 answer

Elasticsearch noop update response not deserializable

My scripted update produces the following noop response since the condition was not met: /my_idx/_update/my_doc_id { "_index": "my_idx", "_type": "_doc", "_id": "my_doc_id", "_version": 4, "result": "noop", "_shards": { …
0
votes
0 answers

How to Reload ElasticSearch java RestHighLevelClient SSL Certificates without Server Restart

In my application I am using the elasticsearch java RestHighLevelClient for SSL connection to connect with elasticsearch server. RestHighLevelClient is a singleton object in my application. I have SSL certificate which expire in every 7 days. After…
Amit Garg
  • 838
  • 1
  • 10
  • 21
0
votes
0 answers

Create Index Template using Java API Client

How to create index template in ElsaticSearch 7.17 or later using Java API Client? I decided not to use the Java High Level REST Client because it was marked as deprecated. However, no reference materials were found anywhere for generating index…
secuman
  • 539
  • 4
  • 12
0
votes
1 answer

can java API Client 7.16 be used with Elasticsearch 7.9.2?

Sorry if this is very obvious. we are currently using elasticsearch 7.9.2 for our application. As per documentation The Elasticsearch Java client is forward compatible; meaning that the client supports communicating with greater or equal minor…