Questions tagged [elasticsearch-jest]

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

161 questions
4
votes
0 answers

Is ElasticSearch append API available in java?

I have a use case to index new documents to ElasticSearch and update existing ones. The update can include: 1) Update/ overwrite some fields. 2) APPEND new String value to one of the existing String Array fields. (By APPEND I mean, I don't want to…
4
votes
2 answers

Elasticsearch Java Jest client query builder range with bool query

I need to make an Elasticsearch query using Jest client, to match some terms and a date with a range query. So I need to perform a bool query with a range query using Jest QueryBuilder to have a request like this: { "query": { "range": { …
fmdaboville
  • 1,394
  • 3
  • 15
  • 28
4
votes
0 answers

Elastic Search - java api for inner hit

I made some query like below. "query" : { "nested" : { "path" : "comments.votes", "query" : { ... }, "inner_hits" : {} } } and I convert it as java api QueryBuilders.boolQuery().must( boolQuery ) .must( // error here if i…
J.Done
  • 2,783
  • 9
  • 31
  • 58
4
votes
2 answers

_msearch vs _search performance

_msearch is used for multiple searches in one go. This alone is a performance improvement since it reduces the network overhead. Right now I'm using _msearch like the _search endpoint, for single queries. I wanted to have this mechanism in place…
Alkis Kalogeris
  • 17,044
  • 15
  • 59
  • 113
4
votes
0 answers

java.lang.NoSuchMethodError: io.searchbox.client.config.HttpClientConfig.isRequestCompressionEnabled()Z

I am trying to use Jest Client for REST calls for elastic search. I am getting the following error in line JestClient client = factory.getObject();: Exception in thread "main" java.lang.NoSuchMethodError:…
Rhea
  • 165
  • 1
  • 2
  • 8
4
votes
2 answers

ElasticSearch Jest client, how to return document id from hit?

I'm using Jest as ElasticSearch client to search documents: JestClient client = ...; Search search = ...; SearchResult searchResult = client.execute(search); List> hits = searchResult.getHits(klass); Each Hit object looks…
coderz
  • 4,847
  • 11
  • 47
  • 70
4
votes
1 answer

Jest getSourceAsObject always returns NULL

I am trying several examples from Jest to use as a POC for ElasticSearch integration. Right now, I am trying just a basic GET. I created a POJO called Document. In there are some basic setters and getters are some fields. I populate it and then use…
Ascalonian
  • 14,409
  • 18
  • 71
  • 103
4
votes
1 answer

Troubles creating an index with custom analyzer using Jest

Jest provides a brilliant async API for elasticsearch, we find it very usefull. However, sometimes it turns out that resulting requests are slightly different than what we would expect. Usually we didn't care, since everything was working fine,…
makasprzak
  • 5,082
  • 3
  • 30
  • 49
4
votes
2 answers

Not able to Query alphanumeric fields from ELASTIC SEARCH using TERMS QUERY

I am trying to query Alphanumeric values from the index using TERMS QUERY, But it is not giving me the output. Query: { "size" : 10000, "query" : { "bool" : { "must" : { "terms" : { "caid" : [ "A100945","A100896" ] …
3
votes
1 answer

Delete child documents without parent in Elasticsearch using Jest

As the title says, I'm trying to delete all the parentless child documents using Jest. If I got things correctly, I need to use DeleteByQuery, and my proposed solution is this: val allParentlessChildren = QueryBuilders .boolQuery() …
3
votes
1 answer

aws elasticsearch signed delete request returns 403 forbidden (using apache httpclient)

I'm getting an http 403 forbidden error trying to delete an aws elasticsearch index via the java Jest(v6.3) elasticsearch client (which delegates the http calls to apache httpclient(v4.5.2) I know my permissions are setup correctly in AWS as I'm…
3
votes
1 answer

JestClient Suggest not Working with java.lang.NoSuchMethod Error

For all searching, the Jest-client gets initialized with a uri as follows: http://serverIp:serverPort _all/_search How can I initialize a client with a uri, something like following? http://serverIp:serverPort _all/_suggest I am using the…
ani0904071
  • 362
  • 2
  • 11
3
votes
0 answers

Jest client shutdown after the first execute operation

I created an AWS Lambda package (Java) with a function that reads some files from Amazon S3 and pushes the data to AWS ElasticSearch Service. Since I'm using AWS Elastic Search, I can't use the Transport client, in which case I'm working with the…
3
votes
1 answer

Jest client/ ElasticSearch cluster informations

I'm using jest client in a java application to connect to an ElasticSearch cluster and now i want to find informations on how to get cluster informations like this with jest api: { "name" : "", "cluster_name" : "", "version" : { "number" :…
3
votes
2 answers

how to search with three form fields in elastic search using jest client or transport client

three form fields means experience and skills and location i want search with skills or skills with location or skills with experience ..but here skills is mandiatory..i write only search with skills but i want search with differently like mentioned…
bhagavan
  • 51
  • 1
  • 1
  • 6
1
2
3
10 11