Tag used when doing elastic query using High Level Rest Client
Questions tagged [elasticsearch-high-level-restclient]
71 questions
0
votes
1 answer
org.elasticsearch.client.RequestOptions is only dependency not found in elasticsearch client
For some bizarre reason, the following import is not being found by maven. I am not sure if it's removed from the dependency I get from maven or not. Could I please get a look at why it's not being found
import…

Mohamed Ali
- 702
- 8
- 29
0
votes
1 answer
Delete documents from elasticsearch in Scala using RestClient
I am trying to delete documents from an index whose age(field of the index) is greater than 50. So basically i m trying to write a range query. I have successfully connected to ElasticSearch from Scala and also i am able delete an entire index. But…

Basant Jain
- 115
- 1
- 12
0
votes
2 answers
createIndex elasticsearch high level rest client for JAVA makes settings incorrectly
I am using this code from the elasticsearch documentation to create an index. I should be able to paste the index configuration object from Postman in my Java code.
request.source("{\n" +
" \"settings\" : {\n" +
" …

GNG
- 1,341
- 2
- 23
- 50
0
votes
0 answers
Initialize an Elasticsearch SearchResponse object before running a query
I am running various Elastic Search queries from my Java code. In order to consolidate my code, I would like to initialize a SearchResponse object before my conditional loops that each run an ElasticSearch query with different settings. This way, I…

GNG
- 1,341
- 2
- 23
- 50
0
votes
1 answer
query data from elasticsearch using java highlevelrestclient
How to query data from elasticsearch based on the property that is present inside the actual object.
Format of data stored in elsticsearch:
{
"principals": [
{
"id": 1,
"account": {
"account_id": 2
}
}
…
0
votes
0 answers
Latency in retrieving Elastic search response to Java
I am searching my Elastic index from my Java backend using Elastic's high level REST client for JAVA. I notice that it takes 700 to 800 milliseconds to receive the response from Elastic.
I checked the actual query time in Elastic and it is only 7…

GNG
- 1,341
- 2
- 23
- 50
0
votes
0 answers
Tomcat not starting after adding Elastic search High Level Client Dependency
I have an existing project deployed into Tomcat v 8.5.
Once I added the elastic Search High Level client dependency, I am getting below exception while starting the server.
FYI. Earlier I have added a main method and wrote some basic code to do a…

PolygotP
- 82
- 7
0
votes
1 answer
ElasticSearch Rest High Level Client remapping wrong
I'm trying to create a class which will write automatically to ElasticSearch through the Rest High Level Client with the operations (create, createBatch, remove, removeBatch, update, updateBatch) and those operations all work and my test cases all…

EterNaL_SC2
- 13
- 4
0
votes
1 answer
Aggregation with keywords in Elasticsearch
My end goal is to build a faceted search page using an Elasticsearch index.
I am following this tutorial
Why is this aggregation query not working with my data? I think I need to change my aggregation clause, so that it refers to the keywords…

GNG
- 1,341
- 2
- 23
- 50
0
votes
1 answer
Copy a map into Elastic Search's Update Document request
I would like to add a set of key value pairs from a HashMap to the request body of the UpdateRequest function in Elastic Search's Java High Level REST client API.
I can successfully loop through the HashMap and pull out the keys and values. How can…

GNG
- 1,341
- 2
- 23
- 50
0
votes
1 answer
Rest High Level Client : Request timeout is not working
We are trying to use a request timeout in our queries but it doesn't seem to be working for us.
Here're the things we have done as part of setup:
search.default_allow_partial_results : false (on server side as well
as client side)
Set the timeout…

Kuldeep Singh
- 13
- 1
- 7