Tag used when doing elastic query using High Level Rest Client
Questions tagged [elasticsearch-high-level-restclient]
71 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
10
votes
1 answer
Spring Data Elastic Search vs Java High Level REST Client
I'm new to Elastic search. We are building a Spring boot application with Elastic search.
For integrating my Spring boot application either we can use elasticsearch-rest-high-level-client or spring-boot-starter-data-elasticsearch.
Can anyone please…

Devkinandan Chauhan
- 1,785
- 1
- 17
- 42
4
votes
2 answers
Elasticsearch cluster load balancing best practices
I would like to understand whether I need or is it considered as a good practice to have load balancer as part of the deployment of Elasticsearch.
As far as I understand high level rest client as well as transport client of Elasticsearch can manage…

liotur
- 809
- 2
- 17
- 36
4
votes
1 answer
Put mapping with Elastic Search's High level REST JAVA client asynchronously - deprecated error
I am following this Elastic Search documentation to create a mapping for my Elastic Search index named "contacts".
https://www.elastic.co/guide/en/elasticsearch/client/java-rest/master/java-rest-high-put-mapping.html
Running my code results in…

GNG
- 1,341
- 2
- 23
- 50
3
votes
0 answers
Distinct High Level Rest Client Elastic Query
How to use High Level Rest Client to find documents by distinct value. Documentation talks about Aggregation framework for finding distinct documents by field. But I could not find any example using High Level Rest Client. How can I get distinct…

java_dude
- 4,038
- 9
- 36
- 61
2
votes
0 answers
Build error in QuarkusTest due to @RestClient
I try to write a QuarkusTest in order to test a class that is actually working as an ElasticSearchStore. In the app, there is a rest client for accessing GoogleMaps API which looks like:
@RegisterRestClient(configKey = "google-maps-api")
…

IbrahimD
- 891
- 1
- 7
- 14
2
votes
1 answer
How to know if a reindex from remote task is sucessful or failed in elasticsearch using the java high level rest API
I'm using the ElasticSeach highlevel rest api client to do some custom reindexing from another cluster.
ReindexRequest reindexRequest = new ReindexRequest()
.setMaxDocs(3000)
.setDestIndex("my-new-index")
…

Eric
- 375
- 7
- 19
2
votes
1 answer
Elasticsearch Spring Data and Elasticsearch HighLevelClient performance for complex aggregations
I was trying to find benchmarks that compare performance of Elasticsearch Spring Data with Elasticsearch HighLevelClient for search queries with complex nested aggregations before I make one.
But the only thing I found was that if you need CRUD…

FargolK
- 169
- 1
- 14
2
votes
2 answers
How to hit Secure Elastic Search through Java High Level Rest Client
I'm new to Elastic search. Integrated my Spring boot application with Elastic search through Java High Level Rest Client.
I've configured JHLRC bean as below and it worked fine:
@Bean(destroyMethod = "close")
public RestHighLevelClient client() {
…

Devkinandan Chauhan
- 1,785
- 1
- 17
- 42
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
0 answers
Indexing a large dataset in elastic search causes java.net.SocketTimeoutException: 30,000 milliseconds timeout on connection http-outgoing-223 error
I am indexing a large dataset using Elasticsearch's high level REST client for JAVA. When I say "indexing", I mean creating the index, adding a mapping, adding a lot of data (8 million documents) and then aliasing the index. I notice that this error…

GNG
- 1,341
- 2
- 23
- 50
2
votes
1 answer
Query builder not finding matches in Elastic Search JAVA high level reset client
I wrote JAVA code that queries an Elastic Search index (served by Elastic Cloud - although I don't think that's relevant to this question).
With no query terms, the function returns all documents in the index as expected.
When I add a search query…

GNG
- 1,341
- 2
- 23
- 50
1
vote
0 answers
How we can create suggest query as per ELasticsearch in opensearch for ContextType of Suggester?
I am using Elasticsearch 7.4 and java client api. I want to use context suggester with search api given in this document Suggesters | Elasticsearch Guide [8.6] | Elastic
can any one give me any sample documents which explains how to do in java api…

MangeshShinde
- 13
- 3
1
vote
1 answer
How to remove all aggregation from a SearchSourceBuilder fully?
I have a SearchSourceBuilder which has all blocks like Query,From, Size, Aggregations etc. But later I want to remove only the Aggregations blocks for some use case fully before sending the DSL to ES.
Example, I need to remove the entire…

Abhishek Sengupta
- 2,938
- 1
- 28
- 35
1
vote
0 answers
Elasticsearch Java HLRC Async Scroll Query
I have 150k documents within an index for which I need to dump the raw data; yes I actually need all the raw data.
So I am trying to figure out how to run a scroll query but would like to do so async, however I haven't been able to figure out how to…

Justin
- 4,461
- 22
- 87
- 152