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
Browse all documents and bulk update some of them
I am using the Jest client for Elastic to browse an index of document to update one field. My workflow is to run an empty query with paging and look if I can compute the extra field. If I can, I update the relevant documents in one bulk…

Stephane Nicoll
- 31,977
- 9
- 97
- 89
1
vote
0 answers
how to get particular search result in elastic using jest with spring mvc
here is my sample code but able get values but there may be a issue plz help me
when i search in search form i need that particular result..
@Controller
public class SearchController {
ModelAndView mv;
SearchModel…

bhagavan
- 51
- 1
- 1
- 6
1
vote
0 answers
Making index/type mapping raises internal error with JEST
I'm using JEST to access Elasticsearch and so far its working fine. Now I want to manage index/type mappings from my application so I followed an example from JEST web site but I'm getting an error as bellow.
RootObjectMapper.Builder…

David Marko
- 2,477
- 3
- 27
- 58
1
vote
1 answer
How to execute RemoveAliasMapping in ElasticSearch using JEST
I am trying to remove an alias mapping for an index in ES using jest.
Here is what I have tried :
// create Jest Client.
JestClient client = factory.getObject();
// create RemoveAliasMapping Object.
RemoveAliasMapping removeAliasMapping = new…

Anirudh
- 13
- 3
0
votes
0 answers
Opensearch integration tests with Jest
I am using Elasticsearch (Opensearch) in a Nx monorepo in a node js Serverless app that connects to aws services. I would like to use jest to test but so far I have not been able to get responses from Opensearch.
I have in my test file this:
const {…

Kabethy
- 1
- 4
0
votes
1 answer
How to Mock a bulk method of elastic search searvice
I'm doing test for my searchService and I realize that the bulk method used to insert data to elasticSearch db has some intern operation.
beforeEach(async () => {
const moduleRef: TestingModule = await Test.createTestingModule({
providers: [
…
0
votes
1 answer
Parsing inner hits along with source
We are using Jest java client for interacting with E.S in our application.
We have a document structure like below :
{
"productId":123,
"reviews":[ // <============ NESTED
{"id":1, "rating":3, "epoch":12345}
{"id":2, "rating":4,…

Sahil Gupta
- 2,028
- 15
- 22
0
votes
1 answer
Find document by Id with additional filter in Elasticsearch using Java Jest
I am trying to use JEST Java API to get Document by Id and have an additional check if an element is present
For example lets say I have a java object User having fields id, firstname, lastname and if the index for document does not have firstname…

Sandeep Nair
- 436
- 2
- 15
0
votes
1 answer
java.lang.NoSuchMethodError: io.searchbox.action.Action.getURI()Ljava/lang/String
I am getting error while building my spring boot application. I am using ES and error comes while jestClient invokes execute method.
Error:
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name…

Ashu
- 11
- 2
0
votes
1 answer
Jest client analyze function is failing in ES 6.5.4
I am using jest client analyze function to analyze text. I am using Jest client version 5.3.4 and ES 6.5.4.
Here is the code:
Analyze.Builder AnalyzeBuilder = new Analyze.Builder().index(index.name).text(textToAnalyze).analyzer(analyzer);
…

ssaxena
- 21
- 2
0
votes
1 answer
JestClient Get.Builder is failing though SearchBuilder works fine
JestClient is returning signature mismatch error while running the query using Get.Builder, though the other queries using SearchBuilder are working just fine.
This works:
SearchSourceBuilder searchSourceBuilder = new…

Venkat Papana
- 4,757
- 13
- 52
- 74
0
votes
1 answer
Elasticsearch Jest client add condition to json query
I am using Elasticsearch 6.3 with Jest client 6.3 (Java API)
Search search = new Search.Builder(jsonQueryString)
.addIndex("SOME_INDEX")
.build();
SearchResult result = jestClient.execute(search);
And this is…

GBP
- 302
- 6
- 19
0
votes
0 answers
AWS elasticsearch access Request signing using Java
I want to connect to elastic search from Java. Elastic search domain is configured in AWS. I am using Jest library for this. Currently i have added my system ip in the elastic search configure access section. So i can access ES endpoint. But this…

Java Programmer
- 1,347
- 3
- 12
- 31
0
votes
1 answer
Jest elastic search Query builder query with multiple match strings
I am trying to query elastic search in Java using Jest. I am using a query builder to construct the query.
QueryBuilder matchQuery = QueryBuilders.boolQuery()
.must(QueryBuilders.matchQuery("id", "3434"))
…

Java Programmer
- 1,347
- 3
- 12
- 31
0
votes
1 answer
Elasticsearch reindex only certain _source parameters
I have a performance issue that I am trying to solve... I am doing a reindex on-the-fly from a source index in AWS managed Elasticsearch 6.2 to a destination index. The source index is currently hundreds of GB in size and likely to be larger in…

BPS
- 607
- 8
- 29