Questions tagged [elasticsearch-rest-client]
47 questions
12
votes
1 answer
elasticsearch-rest-high-level-client vs elasticsearch-rest-client
I'm new to Elastic search. Started building a Spring boot application with Elastic search.
Using the latest ES version "elasticsearch-7.7.1" and for integration, I'm using below maven dependency:
…

Devkinandan Chauhan
- 1,785
- 1
- 17
- 42
5
votes
2 answers
Elastic Search Reindex : Wait for completion
I'm trying to reindex 2695140 documents, using Nest C#. I need to calculate how much time it taken to reindex all the documents, for which I've written the logs. But after running for 1 minute, my code is returning an invalid response (Failed) but…

Moulali Shaik
- 131
- 1
- 3
3
votes
1 answer
How does consuming till the end of stream using EntityUtils.consume(httpEntity) result in releasing the connection back to the connection pool?
I read here that EntityUtils.consume(httpEntity) will result in releasing the connection back to the connection pool, but when I looked at the source code, I couldn't understand how is that happening. Can someone please point me to the part of the…

A.D
- 381
- 2
- 8
3
votes
1 answer
Is RestHighLevelClient keep connections open?
I want to use RestHighLevelClient on different clusters with commands which are not supported by Cross Cluster mechanizem (for example close and open index).
My question is if I use more than one instance of RestHighLevelClient for every cluster it…

Lupidon
- 599
- 2
- 17
3
votes
0 answers
Elasticsearch synonym_graph filter not giving all tokens
I'm trying to use synonym_graph filter in the analyzer but it is not generating the result we need.
This is my curl command to analyze text:
curl -X GET "localhost:9200/_analyze?pretty" -H 'Content-Type: application/json' -d'
{
"tokenizer":…

Dhirendra Saw
- 31
- 1
3
votes
1 answer
Elasticsearch query match multiple values to single field
Trying to get documents matching values X1 or Y1 for field ABC. Tried both must or should queries, but not getting expected result. Can someone suggest what kind of query should I try? Using HighLevelRestClient.
{
"bool" : {
"must" : [
…

java_dude
- 4,038
- 9
- 36
- 61
3
votes
1 answer
How to get only failed documents in the response from Elasticsearch Java High-Level Client 6.8
Is there any way to get only failed documents in the response while bulk request using Elasticsearch Java High-Level REST Client.
Currently, ES is sending all the succeed and failed document in the response and we are reprocessing all the failed…

pramesh
- 501
- 3
- 11
3
votes
1 answer
too_many_buckets_exception in elasticsearch
I am facing an issue in ElasticSearch aggregation. We are using RestHighLevelClient for querying ElasticSearch in Java.
Exception is -
ElasticsearchStatusException[Elasticsearch exception
[type=search_phase_execution_exception, reason=]];…

nitin tyagi
- 1,176
- 1
- 19
- 52
2
votes
2 answers
elasticsearch.ElasticsearchException: Invalid or missing tagline (OpenSearch)
After migrating to AWS OpenSearch from Elasticsearch we get the following error when calling OpenSearch via the Elasticsearch-Rest-High-Level-Client:
elasticsearch.ElasticsearchException: Invalid or missing tagline [The OpenSearch Project:…

Nexonus
- 706
- 6
- 26
2
votes
0 answers
ClassNotFoundException while indexing data into elasticsearch org.elasticsearch.common.CheckedConsumer
I am using below stack to index a data into Elasticsearch:
Elasticsearch 7.15.1
Apache Camel 3.12.0
Spring 5.3.12
Spring Boot 2.5.6
While indexing the data into Elasticsearch [7.15.1] I am getting ClassNotFoundException:…

Triveni K
- 21
- 1
2
votes
2 answers
Elasticsearch method not being found in spring boot
I have been stuck with this issue for a while now and any assistance is appreciated. I am running Spring Boot version 2.2.0 with the ElasticSearch high-level REST Client version 6.4.3 and using version 3.2.0 for the Spring-Data-Elasticsearch…

Mohamed Ali
- 702
- 8
- 29
2
votes
1 answer
RestHighlevelClient Sliced Scroll not working
I am trying to fetch a large data records from Elasticsearch (Version - 6.4.2) in a minimal time.
To do that, I am using multi threading to run each slice scroll in a separate thread.
example: My query has 3 slices, so:
thread 1 - slice id 0
thread…

Pramod Agrawal
- 21
- 3
1
vote
1 answer
Pass list of Id as a parameter of Multi-Get request using java high level rest client
I am trying to get a list of all the documents which are present in the index using java high-level rest-client.
The sample index data is -
PUT /my-index/_doc/1
{
"account_number": 1,
"balance": 28838
}
PUT /my-index/_doc/2
{
…

ESCoder
- 15,431
- 2
- 19
- 42
1
vote
0 answers
How to connect to either one of multiple elasticsearch cluster at runtime depending on request?
I am currently using
org.springframework.boot
spring-boot-starter-parent
2.3.0.RELEASE
and following dependency for elasticsearch
…

user11725513
- 53
- 7
1
vote
0 answers
Partial Update a document in ElasticSearch using Java API
I want to partially update a document in elastic search using java api. My ES mapping looks like :
"mappings": {
"DOC_TYPE": {
"properties": {
"FieldA": {
"type": "long"
},
"FieldB": {
"type":…

Master Developer
- 97
- 11