Skip to main content
-1 votes
1 answer
106 views

How to submit task in ElasticSearch Java API Client?

Now, RestHighLevelClient is deprecated. So i want rewrite code with ElasticSearch Java Api Client in my spring project. Most of the functions are being modified properly, but I have not found an ...
Redwings's user avatar
  • 556
0 votes
0 answers
38 views

How do I turn this elasticsearch query on the xpack users into a Java Client request?

Goal I'm trying to search for users with a specific prefix. To that end, I have a query similar to this that works in Kibana: POST /_security/_query/user { "query": { "prefix"...
user11058144's user avatar
0 votes
1 answer
1k views

Elasticsearch Java API Client TransportException [es/search] Failed to decode response

I am trying to set up the new Elasticsearch Java API Client. Here is my configuration: // Set up elasticsearch cluster hosts String[] elasticsearchHosts = elasticsearchEndpoints.split(",&...
Murat K.'s user avatar
  • 979
0 votes
1 answer
118 views

SortOrder mapping problem between Elasticsearch REST High API client and Java Api Client

I am migrating my project from the old Elasticsearch REST High Client to the new Java Api Client. I use Openapi generator and Mapstruct. In openapi.yml SortOrder: enum: - ASC ...
Murat K.'s user avatar
  • 979
1 vote
2 answers
2k views

Elasticsearch - Migrating from Java High Level Rest Client to New Java API Client of Version 8.x

I am using the new version 8.13 of Elasticsearch for a new search app and trying to imitate the below kind of logic using the new Java API client instead of using Java High Level Rest client which was ...
Xwin's user avatar
  • 163
0 votes
1 answer
171 views

Elasticsearch Java Api client single metric aggregation deserializer

I am using elasticsearch-java api client (8.10.3) and facing a small issue and I hope someone has already encountered this issue before. I am trying to perform a min aggregation on documents that may ...
Almog Oz's user avatar
0 votes
0 answers
153 views

Migrating from ElasticSearch 1.7 to 7.17 using Java Client API - filteredQuery

I'm migrating from ES1.7 to 7.17. Facing some issues with implementing filteredQuery using Java Client API. For example, in 1.7.5 QueryBuilder queryBuilder = QueryBuilders.filteredQuery(QueryBuilders....
devilhector's user avatar
2 votes
1 answer
623 views

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 ...
mipo256's user avatar
  • 3,356
1 vote
1 answer
3k views

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, ...
Ssk's user avatar
  • 13
0 votes
1 answer
854 views

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(...
Indrapreet's user avatar
0 votes
2 answers
2k views

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 ...
Phani Varma's user avatar
0 votes
1 answer
2k views

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 ...
Dhruvajyoti Chatterjee's user avatar
0 votes
1 answer
2k views

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 ...
Anonymous Panda's user avatar
0 votes
1 answer
707 views

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 ...
breakingcode's user avatar
0 votes
1 answer
993 views

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",...
linusv's user avatar
  • 4,108

15 30 50 per page