Questions tagged [elasticsearch-jest]

Jest is a HTTP REST client for Java's Elasticsearch. Use with [elasticsearch] and/or [java]

161 questions
1
vote
2 answers

ElasticSearch Error: Invalid term-aggregator order path [_key]. Unknown aggregation [_key] while performing aggregation from Java

i'm getting the below error when performing aggregation Error: Invalid term-aggregator order path [_key]. Unknown aggregation [_key] while performing aggregation from Java code: public static void main(String[] args){ JestClient jestClient =…
Siva
  • 1,078
  • 4
  • 18
  • 36
1
vote
2 answers

Will Elasticseach reduce shards number by itself, if I reduce the shards paremeter in @Document annotation?

I had @Document(shards=5) for my entity in my SpringBoot application using Spring Data Elasticsearch. I have realised it is too resource consuming and have reduced it to @Document(shards=1) and just redeployed the java app with new code. I did no…
1
vote
1 answer

How to read from ES 1.7 of huge data to index into ES 6.7

Need to read data from ES 1.7 to index to 6.7. As there is no upgrade available. Need to index almost 5 TB data of 200 million records. We are using ES_REST_high_level_client(6.7.2) using the search and scroll approach. but not able to scroll using…
Akshay
  • 177
  • 1
  • 3
  • 14
1
vote
1 answer

How to manually invoke snapshot endpoint for ElasticSearch using JestClient

I'm already using JestClinet for all my CRUD operations on my ES on AWS. Now I'm trying to snapshot my ES as described in https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-request-signing.html Instead of using another…
1
vote
0 answers

JHipster elasticsearch configuration for multiple cluster nodes

I am developing a jhipster project with elasticsearch. As Using Elasticsearch page describes, I used the spring.data.jest.uri property for production use as follows: spring: ......... # omitted to keep short data: mongodb: …
tikeman
  • 39
  • 10
1
vote
0 answers

Using Nutch and Elasticsearch with indexer-elastic-rest

I've used Nutch and Elasticsearch many times before, however, I believe I was using the default setup to where Nutch used the binary transport method for communicating with Elasticsearch. It was simple and worked out of the box so I've used it…
user3125823
  • 1,846
  • 2
  • 18
  • 46
1
vote
0 answers

Elasticsearch get task ID from index name in Java?

I am performing a query + reindex on the fly in Java 8 using Elasticsearch 6.2, on AWS. I am also interfacing the ES cluster through a Jest client, again, with the Java APIs provided by the client's library. I return back the results of the query to…
BPS
  • 607
  • 8
  • 29
1
vote
0 answers

SocketTimeOutException and ConnectionClosedException with JestClient

We are using JestClient to connect to Elastic search.(io.searchbox.client.JestClient). And using executeAsync method to write to Elastic search. We have same code deployed on different enviornment like dev, test,..prod. On Dev with nominal load we…
1
vote
1 answer

Unable to connect to Elastic Search intermittently

I am trying to connect to elastic search via Jest Client. Sometimes, the client is not able to connect to the elastic search cluster. Stack Trace : org.apache.http.NoHttpResponseException: search-xxx-yyy.ap-southeast-1.es.amazonaws.com:443 failed…
tarunkt
  • 306
  • 2
  • 12
1
vote
0 answers

elastic search giving wrong results

I'm new to elastic search and trying to fetch logs from it using java and I've noticed that it gives me wrong results at times. Below is the piece of code: String connectionUrl = "https://elasticsrchurl.eu-west-1.es.amazonaws.com"; JestClientFactory…
1
vote
1 answer

Elasticsearch: match arrays of nested objects

The example is extracted from Elasticsearch reference: https://www.elastic.co/guide/en/elasticsearch/reference/5.3/nested.html My index is similar to this. The only difference is user.first and user.last are keyword type so I can use filter on…
1
vote
0 answers

Create an elastic index by passing a list of custom objects

I am facing an issue while creating an elastic search index by passing a list of custom object. Following is the bean which I populate based on certain conditions - public class DataBean { private String request_id; private String clicks; private…
user1305398
  • 3,550
  • 5
  • 26
  • 42
1
vote
1 answer

Elasticsearch bool query formation with multiple must clause

I have a query like the following - { "query": { "bool": { "must": { "bool" : { "should": [ { "match": { "camp_id": "Elasticsearch" }}, { "match": { "camp_id":…
user1305398
  • 3,550
  • 5
  • 26
  • 42
1
vote
1 answer

retrieving specific fileds using JestClient in elastic Serach

I have the following document stored in elastic search {"Book_Id" : "102" ,"Book_Name" : "Alice in wonderLand", "Review_Text" :"DescentRead","Rating_Percentage" :"100" }' {"Book_Id" : "102" ,"Book_Name" : "Alice in wonderLand", "Review_Text" :"For…
Sajna
  • 79
  • 1
  • 9
1
vote
0 answers

delete by query in jest elastic search 5.5

I am looking to delete a document by query using jest client. In elastic search 2.0 it can be done by adding delete by query plugin and by writing the code DeleteByQuery deleteAllUserJohn = new DeleteByQuery.Builder("{\"user …
Ash
  • 149
  • 1
  • 1
  • 13