Tag used when doing elastic query using High Level Rest Client
Questions tagged [elasticsearch-high-level-restclient]
71 questions
0
votes
0 answers
Approximate aggregation results in elasticsearch
I have an index with 10M documents with nearly 1M unique names and 20 shards, when I use terms aggregation it produces an approximate aggregation result as an CURL request, but when I try to replicate the approximation in REST high level client in…

nick
- 1
- 3
0
votes
1 answer
How to use "has_child" in the Rest High Level Client of ElasticSearch
I want to issue the following search query in ElasticSearch.
GET /example1/_search
{
"query": {
"has_child": {
"type": "schedule",
"query": {
"bool": {}
},
"inner_hits": {},
"max_children": 10,
…

Seiji
- 3
- 1
0
votes
1 answer
Get Mappings for type with Elastic Search high level rest client
I've upgraded Elastic search from "2.3.4" to "7.10.0". I wanna upgrade existing code of getting mapping for a specific index and type. Please refer below code(old and new).
old code(2.3.4):
Map mappingMeta =…

Devkinandan Chauhan
- 1,785
- 1
- 17
- 42
0
votes
1 answer
GetMappings changes in Elastic Search 7.x
I've upgraded Elastic search from "2.3.4" to "7.10.0".
While making changes in application code got confused about below case of GetMappings:
old code(2.3.4):
Map mappingMeta =…

Devkinandan Chauhan
- 1,785
- 1
- 17
- 42
0
votes
1 answer
TotalHits missing after upgrading Elastic Search
I've upgraded Elastic search from "2.3.4" to "7.10.0".
Added below dependencies under my build.sbt:
"org.elasticsearch.client" % "elasticsearch-rest-client" % "7.10.0",
"org.elasticsearch.client" % "elasticsearch-rest-high-level-client" %…

Devkinandan Chauhan
- 1,785
- 1
- 17
- 42
0
votes
1 answer
How to efficiently index logs to elastic search
I'm developing a web application in which i'll upload a log file, the file will be read and classified based on logger levels (INFO,ERROR,WARNING etc..). I need to index those logs to elasticsearch using java high level rest client api.
Currently…

Ajay Venkatesh
- 27
- 5
0
votes
1 answer
alternate for deprecated methods in ES org.elasticsearch.action.delete.DeleteRequest
I am using org.elasticsearch.client:elasticsearch-rest-high-level-client:7.13.2 as elasticsearch dependency as all the previous versions are quarantined in my organization.
However, am now facing deployment issues due to sonarlint failure on the…

Nva
- 1
- 1
0
votes
0 answers
Elasticsearch: Pattern in high CPU usage after we started using elasticsearch high level client
We started using elasticsearch high level client recently and we use scroll API to fetch large set of data from ES. We see a pattern in high CPU utilization as follows:
It's pattern repeating every 30 minutes. No clue what's going on. We see…

Mahesh H Viraktamath
- 818
- 3
- 14
- 34
0
votes
1 answer
How to get value from aggregation buckets in Java for elasticsearch aggregation query result
So, I have been able to replicate the elasticsearch query as desired in Java with the elasticsearch high level restclient. The problem is that I cannot retrieve the values I want. Before I give the code, I want to address the overarching goal in…

redgrengrumbholt
- 51
- 1
- 4
0
votes
2 answers
Elasticsearch high level REST client - Indexing has latency
we have started using the high level REST client finally, to ease the development of queries from backend engineering perspective. For indexing, we are using the client.update(request, RequestOptions.DEFAULT) so that new documents will be created…

Mahesh H Viraktamath
- 818
- 3
- 14
- 34
0
votes
1 answer
Executing ClusterStateRequest with Java high level rest client
I am converting a codebase that previously used the java TransportClient on an elastic 1.6.2 cluster to use the high level REST http java library. I want to make a request to the ClusterState API described for http here:…

Trace L
- 27
- 5
0
votes
1 answer
can i use spring data elasticsearch to connect to elastic cloud?
@Bean
public RestHighLevelClient restClient() {
ClientConfiguration clientConfiguration = ClientConfiguration.builder()
.connectedTo("hostandport")
.usingSsl()
.withBasicAuth("username", "password")
…

akanirudh
- 1
- 1
0
votes
1 answer
Elasticsearch High level Java Client version 6.0.1 to implement script based sorting
I'm using ES version 6.0.1 and have integrated the Java High level rest client having version 6.0.1 in my application.
I am currently trying to build this script based sorting query using the Java High Level Rest client API of elastic search:
{
…

Prabhat Gupta
- 1
- 1
0
votes
1 answer
Using Mustache API to parse Elasticsearch JSON Template requests
I have been using the SearchTemplateRequest class to execute my requests which uses Mustache templating to parse my template string with the passed parameters.
Elasticsearch Template - Converting Parameters to JSON
However, I have to change my…

Arthas
- 421
- 1
- 6
- 23
0
votes
1 answer
Why Java High Level REST Client got introduced in Elastic search?
There are two Java Rest clients named Java High Level REST Client and Java Low Level REST Client to integrate with Elastic Search.
When did Java High Level REST Client got introduced in Elastic search and why?

Devkinandan Chauhan
- 1,785
- 1
- 17
- 42