21 questions
13
votes
3
answers
22k
views
How to talk to aws elasticsearch service using elastic java client?
I have set up a elasticsearch server using AWS elasticsearch service (Not EC2). It gave me an endpoint https://xxx-xxxxxxxx.us-west-2.es.amazonaws.com/ and if I click this endpoint(Note that there is ...
14
votes
1
answer
21k
views
SocketTimeoutException while retrieving or inserting data into Elastic Search by using Rest High Level Client
I'm facing SocketTimeoutException while retrieving/inserting data from/to elastic. This is happening when there are around 10-30 request/second. These requests are combination of get/put.
Here is my ...
4
votes
2
answers
13k
views
Elasticsearch RestHighLevelClient missing transitive dependencies
I'm trying to use the RestHighLevelClient via this dependency
<dependency>
<groupId>org.elasticsearch.client</groupId>
<artifactId>elasticsearch-rest-high-...
13
votes
2
answers
21k
views
Elasticsearch 7.x circuit breaker - data too large - troubleshoot
The problem:
Since the upgrading from ES-5.4 to ES-7.2 I started getting "data too large" errors, when trying to write concurrent bulk request (or/and search requests) from my multi-threaded Java ...
7
votes
2
answers
17k
views
How to do multiple filter query in Elasticsearch using Java?
I have build a web app on top of elasticsearch. I would like to do a multiple filter using Java.
Elasticsearch Query:
{
"query": {
"bool": {
"must": [
{"match": {
"T": ...
2
votes
3
answers
4k
views
How can I create Bulk CRUD Operations request in Elasticsearch version 8 using JAVA APIs?
We wanted to create IndexRequest, DeleteRequest, UpdateRequest and BulkRequest in Elasticsearch version 8 using JAVA APIs. But I don't see any java documentation in elasticsearch v8 official website. ...
2
votes
4
answers
4k
views
Can I use elasticsearch-java with elasticsearch 7.5.2?
I hava tried many version of elasticsearch-java but none of it can work.
So, my elasticsearch version is 7.5.2, and the error resonse is like this:
org.elasticsearch.client.ResponseException: method [...
2
votes
1
answer
2k
views
How Groovy script can be invoked using java api for Elasticsearch
Looking for pointers to know how Groovy script can be invoked using java api.
test.groovy
def value = dynamicValue
return value
Want to translate following query in Java:
GET /test-index/...
2
votes
2
answers
3k
views
Elasticsearch Search Scroll API doesn't retrieve all the documents from an index
I would like to retrieve all the documents from Elasticsearch, so I referred to the Search Scroll API.
But my question is, it is not returning all the documents, I have 36 documents in one index, for ...
1
vote
1
answer
3k
views
do we need to close elasticsearch node after the every search request
I want to know: do we have to call node.close() every time when we are done with our querying/searching process or just client.close() is fine? Here is my code:
val node =nodeBuilder().client(true)....
0
votes
0
answers
1k
views
ElasticSearch Java API sorting aggregation
I have terms aggregation and I need sort result buckets by another field (date). Or I need to add 2 sub aggregations with max (and top hit) and min (and top hit).
I didn't find any API that allows ...