Jest is a HTTP REST client for Java's Elasticsearch. Use with [elasticsearch] and/or [java]
Questions tagged [elasticsearch-jest]
161 questions
1
vote
1 answer
How to pass multiple node's address in jest (Elastic Search)
I am new to JEST technology. I am practicing it from https://github.com/searchbox-io/Jest/tree/master/jest#authentication link. I am able to create index and adding documents to it, but I want to to pass multiple nodes.
Here is my…

Ash
- 149
- 1
- 1
- 13
1
vote
1 answer
AWS elasticsearch lost documents
I have an AWS Elasticsearch instance with only one node. After inserting some records and getting CONFIRMATION back from the AWS-ES, the documents get lost. I know that there is a delay because of shards refresh, but this is not the case because we…

super7egazi
- 706
- 1
- 8
- 22
1
vote
1 answer
Delete ElasticSearch by Query with JEST
I have some custom data(let's call Camera) in my ElasticSearch, the data showed in Kibana is like
And I tried to delete data by Query according to the accepted answer in this article ElasticSearch Delete by Query, my code is like
String query =…

Alanight
- 353
- 2
- 8
- 23
1
vote
1 answer
Partial update in ElasticSearch with JEST
I'm trying to use JEST to implement CRUD actions to ElasticSearch, and I've surveryed some articles, the method I found to do "Update" is "Index" another document with the same "_id", but I'll replace the whole document in that way.
I want to know…

Alanight
- 353
- 2
- 8
- 23
1
vote
1 answer
Properly adding Jest to Java Play 2.5.x
I'm trying to understand how to best add something like Jest to Play.
In Play's 2.5.x dependency injection documentation, they show how to add singletons, which can be then be injected when needed via constructor injection.
While this makes perfect…

user490895
- 335
- 2
- 7
- 17
1
vote
2 answers
How to get more than 10 thousand Documents at a time from Elasticsearch Using Jest client
ElasticSearch by-default gives 10 records, but we can set the size parameter and can get the more than 10 records but there is limit, we can set only 10000 as record size if we use Jest client for Elasticsearch, if its more than 10 thousand then…

Shubham Pratap Singh
- 35
- 1
- 6
1
vote
0 answers
Set Batch Size for JEST Bulk Request
How to set Batch Size for JEST Bulk Requests JAVA API?
Currently the Bulk Request does not work on Batch Size greater than 10 in my case, is there some way to increase this limit?

Inherited Geek
- 2,283
- 2
- 19
- 26
1
vote
0 answers
NoClassDefFoundError: org/elasticsearch/index/query/QueryBuilder
I have a project where I'm using elasticsearch, Jest and javax servlets.
My pom.xml file looks as follows:

sidd
- 93
- 2
- 12
1
vote
1 answer
Springboot 1.4 + Jest 0.0.6
I am trying to use Jest 0.0.6 ElasticSearch client with SpringBoot 1.4 and have the following error. I think it's due to the fact that SpringBoot tries to create a Jest Client automatically along with a health check for it, but the old Jest client…

chrismacp
- 3,834
- 1
- 30
- 37
1
vote
0 answers
JestResult can't parse my custom JsonObject
I am trying to write unit tests for my JestClient wrapper. To do so, I created a JestResult object where I set a custom JsonObject that has my expected output. However, the JestResult cannot parse my JsonObject. The issue is in the following…

alexgbelov
- 3,032
- 4
- 28
- 42
1
vote
1 answer
Mockito cannot mock this class JestClient
I am writing unit tests for a JestClient wrapper. I'm trying to use Mockito to mock the JestClient, but I'm getting the following error:
Mockito cannot mock this class: interface io.searchbox.client.JestClient
Mockito can only mock visible &…

alexgbelov
- 3,032
- 4
- 28
- 42
1
vote
1 answer
Elastic search Query String java api gives same score to all the results
I am using the below search query:
{ "from": "0", "size": "20", "query": {"query_string" : {"fields" : ["title"],"query" : "seller*", "analyze_wildcard": true}}}
This curl hit returns me hits/results with proper score, whereas I am trying same thru…

abhineet
- 195
- 1
- 1
- 11
1
vote
0 answers
ElasticSearch - How to get subaggregation data from jest
I made some elastic query like below.
"aggregations": {
"state": {
"nested": {
"path": "events"
},
"aggregations": {
"by_act": {
"cardinality": {
"field":…

J.Done
- 2,783
- 9
- 31
- 58
1
vote
1 answer
How can I make the documents expired in elastic search using jest api from java application?
I am new to elastic search, I want to expire the documents indexed in the elastic search with jest API from the application. I found that there is a parameter called as TTL for that. But I am facing problem to set the parameter as enabled and true…

sweety
- 23
- 8
1
vote
1 answer
Jest Client Size Parameter Ignored
I am using the Jest Client to query Elasticsearch from my Java program. Everything works correctly except that when I add the "size" parameter it is ignored. Building and execution of the Search is like so:
Search search = new…

CapnCrunchsna
- 43
- 8