Tag used when doing elastic query using High Level Rest Client
Questions tagged [elasticsearch-high-level-restclient]
71 questions
1
vote
1 answer
Elasticsearch pagination best approach
We have developed a file storage solution which uses elastic search to store metadata about files using the rest level client java API.
We have pagination currently implemented via “from” and “size”. Client makes a call to us specifying the size and…

gio10245
- 37
- 2
- 13
0
votes
1 answer
Elasticsearch date histogram aggregation shows incorrect dates
Im using ES version 6.8, trying to do a query with the Java High Level REST Client. I'm trying to use the Histogram Date Aggregation to get the count of documents by date.
This is my query:
{
"query":{
"bool":{
"filter":[
…

roditoo
- 1
0
votes
0 answers
Getting elastic bean creation issue after upgrading HLRS to elastic client in spring boot app in java 17
Getting bean creation issue with java 17,spring boot 3.0 and Elastic Search 8.6
here is my client class which is used to initiate elastic connection:
@Slf4j
@Configuration
@EnableElasticsearchRepositories(basePackages =…

gAnEsH
- 111
- 1
- 8
0
votes
0 answers
Using PutComposableIndexTemplateRequest in Custom Plugin
I have been working on a custom Elasticsearch plugin that should create an index template and its components when an Elasticsearch instance loads this plugin.
The only client that I can access is NodeClient and there is no way to create…

Murat
- 79
- 2
- 10
0
votes
0 answers
NoNodeAvailableException when using RestHighLevelClient 6.8.10
The application had been using TCP client in the past. Due to a lot of instability in the elastic search connection, implemented Rest High Level Client to establish connection between application and ES cluster. The port used is 9300.
At times, when…

Keerthana Natarajan
- 63
- 1
- 8
0
votes
0 answers
RuntimeException: Request cannot be executed; I/O reactor status: STOPPED in Elasticsearch
I'm using elasticsearch rest-high-level-client version 7.13 in java
but randomly some of the requests (read/write) encounter this error!
I've checked the memory usage and it's between 20% - 40% and have not OutOfMemoryError

lia
- 193
- 2
- 2
- 12
0
votes
0 answers
RestHighLevelClient giving "unrecognized parameters" when trying to send request to ElasticSearch
I am trying to connect to one of the on-prem ES system in my application. Previously it was a different cluster. Recently, our ES team migrated it to a different cluster with basic auth enabled. I have written the below code for initializing…

Abhilash Padhee
- 15
- 2
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…

Anonymous Panda
- 13
- 1
0
votes
0 answers
High CPU Usage of I/O dispather thread when using RestHighLevelClient (elasticsearch-rest-high-level-client 7.10.2)
We are seeing 100% cpu utilisation on containers with elasticsearch high level client. We have stopped the ingestion onto the cluster and we are still seeing containers at 100%.
top command shows all of the cpus are busy executing i/o dispatcher…

Nitish Goyal
- 97
- 10
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…

Karthikeyan Amaresan
- 35
- 5
0
votes
1 answer
ElasticSearch ReIndex Request not working in synchronous manner using Java Rest High Level Client
I have 2 indexes with names -
source_index,
destination_index
Both indexes have same mappings.
I have written following code for making reindex and search requests -
@Autowired
RestHighLevelClient client;
public BulkByScrollResponse…

Aman Mehta
- 303
- 1
- 12
0
votes
1 answer
Set timeout in Elastic Java API Client
I am trying to move from Elastic High level rest client to Elastic Java API Client (Low Level Rest Client). I am able to get the response, but i want to set the timeout for my elastic query.
But this timeout method is accepting a string value, which…

Ashish Mishra
- 145
- 3
- 13
0
votes
1 answer
AWS Elasticsearch cluster upgarde from 6.3 to 7
Presently AWS Elasticsearch cluster version is 6.3 and I am planning to upgrade it to 7. reindexing is also have to be done. reindexing is required
to have _doc as type for the indices instead of our custom mapping types.
Below are my queries:
1.…

Ayesha
- 15
- 1
- 4
0
votes
1 answer
Elasticsearch - what the best way to find all indices between two dates for rotating index set up using Java client
Our set up in ES ( 7.x) is to rotate indexes every day in format indexName-yyyy-MM-dd
I'm trying to find the best way to predict the indexes between two days so I can include them in a search request in Java Rest high-level client
As the guide…

csf
- 529
- 1
- 4
- 16
0
votes
1 answer
Elastic Search: Generating Elastic Search query using Elastic search API
I would like to know the difference between the hard corded query and the query generated through API's? I am using elastic search API to build a query. The resultant query that I am expecting is of the below format.
{
"query": {
"bool": {
…

User27854
- 824
- 1
- 16
- 40