Questions tagged [elasticsearch-rest-client]
47 questions
0
votes
0 answers
Spring Boot not being terminated after adding Elasticsearch dependencies
My Spring Boot Application is just performing data ingestion task and it should be terminated after the process. Recently we've added elasticsearch and data are being pushed to elasticsearch server. However, now application not being terminated…

Anonymous
- 5
- 3
0
votes
2 answers
Elasticsearch high level REST client - Indexing has latency
we have started using the high level REST client finally, to ease the development of queries from backend engineering perspective. For indexing, we are using the client.update(request, RequestOptions.DEFAULT) so that new documents will be created…

Mahesh H Viraktamath
- 818
- 3
- 14
- 34
0
votes
0 answers
Update requests with retry_on_conflict set are not working
I am using the rest client to update some documents and got some version conflict issues. I then added a call to retryOnConflict(3) when creating the UpdateRequest. However, I still got some conflicts like below:
exception…

slushi
- 1,414
- 13
- 22
0
votes
1 answer
ElasticSearch returning all Field values as null
My config:
@Configuration
@EnableElasticsearchRepositories(
basePackages = { "com.aj.new.repositories" })
public class ElasticDataSourceConfig {
@Bean
public RestHighLevelClient client() {
ClientConfiguration…

Anjil Dhamala
- 1,544
- 3
- 18
- 37
0
votes
2 answers
How to manually configure elasticsearch healthcheck
Currently elasticsearch is autoconfigured by mentioning this property in application.yml file
spring:
elasticsearch:
rest:
uris:
But my requirement is to not keep this property in this file while still have health check enabled. How to…

user11725513
- 53
- 7
0
votes
1 answer
Why Java High Level REST Client got introduced in Elastic search?
There are two Java Rest clients named Java High Level REST Client and Java Low Level REST Client to integrate with Elastic Search.
When did Java High Level REST Client got introduced in Elastic search and why?

Devkinandan Chauhan
- 1,785
- 1
- 17
- 42
0
votes
2 answers
using elasticsearchoperations vs elasticsearchtemplate whats the difference?
I am trying to figure out why I have to set my bean name to elasticsearchTemplate. Without it, my application crashes. I have the code below to configure my Rest client. The issue is if I don't add the elasticsearchTemplate as the bean name, it…

Mohamed Ali
- 702
- 8
- 29
0
votes
1 answer
Delete documents from elasticsearch in Scala using RestClient
I am trying to delete documents from an index whose age(field of the index) is greater than 50. So basically i m trying to write a range query. I have successfully connected to ElasticSearch from Scala and also i am able delete an entire index. But…

Basant Jain
- 115
- 1
- 12
0
votes
1 answer
How to get number of match data using Count API in elasticsearch-6.4.0.jar
I need to fetch the number of matched data from ElasticSearch using REST API. Currently I am using
elasticsearch-6.4.0.jar to write API. Unfortunately I could not find CountAPI in this version.
Moreover I tried to use older version jar…

HShetty
- 21
- 2
- 7
0
votes
0 answers
Error is thrown while indexing a document through Elasticsearch rest client
I am using spring boot application with Elasticsearch rest high level client. While indexing a document in already created index customer , I am facing following issue :
java.lang.IncompatibleClassChangeError: Found interface…
user11935734
0
votes
1 answer
Get Elasticsearch TotalHits from RestHighLevelClient while upgrading from 6.8.X to 7.5.X
I'm upgrading my Elasticsearch cluster from 6.8.X to 7.5.X. I have this breaking change; basically in the REST response, there is a {hits: {total: { value: 123 } } } object instead of a {hits: { total: 123 } } int value.
Elasticsearch provides an…

Andrew Rueckert
- 4,858
- 1
- 33
- 44
0
votes
1 answer
Apache Beam Streaming from Pub/Sub to ElasticSearch
I'm writing a java streaming pipeline with Apache Beam that reads messages from Google Cloud PubSub and should write them into an ElasticSearch instance. Currently, I'm using the direct runner, but the plan is to deploy the solution on Google Cloud…

nicodds
- 83
- 10
0
votes
1 answer
Elasticsearch Java HighLevelRestClient how to create not_analyzed index?
I am using the HighLevelRestClient 7.4.0 and I am curious how could I create a not_analyzed field when indexing documents using the Index API.
The problem is that I am trying to implement a movie search by title, and if I search for "matrix" it…

J. Loe
- 201
- 5
- 14
0
votes
1 answer
elasticsearch percolate java api example
Need example for elasticsearch percolate using elasticsearch java rest API
Could not find in elasticsearch docs
In previous versions of elastic below is the code for transport client, not sure which one to be used for rest client
PercolateResponse…

Developer
- 299
- 1
- 2
- 11
0
votes
1 answer
Elasticsearch update document without creating new index
I have many existing indices partition by date. Eg: index_190901, index_190902,...
And I have an API which takes index_name and doc_id as inputs. User want to update some documents in index by input fields, index_name, doc_id.
I'm trying to update…

thangdc94
- 1,542
- 2
- 26
- 38