Questions tagged [resthighlevelclient]

Java's High level REST client that wraps an instance of the low level RestClient and allows to build requests and read responses from elastic search

Elastic Search Java's High level REST client that wraps an instance of the low level RestClient and allows to build requests and read responses from elastic search

163 questions
0
votes
1 answer

Find index of a document in elastic search using Alias

I am using an alias to index my documents in the elastic search cluster.Basically indexes under this alias are created each month and any document ingested using this alias will reside in the index corresponding to the month in which it was…
Kunal gupta
  • 481
  • 2
  • 7
  • 19
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:…
0
votes
1 answer

Handling Mappings when migrating Get Index call from Transport client to Rest High Level Client

We are migrating from Transport Client to High Level Rest Client. How do we reconcile the difference in the mappings field of GetIndexResponse object returned from Transport client vs Rest High Level Client? For transport client, we use this code to…
0
votes
2 answers

Spring Data Elasticsearch does not give expected result

I am using Spring data elasticsearch to query in my elastic documents. My Elasticsearch entity class: //all the annotation things i.e lombok, de/serializer etc @Document(indexName = "project", type = "project") @EqualsAndHashCode public class…
0
votes
1 answer

Elasticsearch Node IP address and other details using java rest high level client

How can we get node details for elasticseacrh using java high level rest client. We can get node details in KIbana using GET /_cat/nodes . I want to how to get same details using high level rest client , i need IP address of nodes and wether its…
Pulkit
  • 73
  • 1
  • 4
0
votes
0 answers

Elasticsearch query from Java REST High level client returns different/undesirable results compared to execution of Query DSL on Kibana

I'm implementing an elasticsearch search feature using Java High-level REST client, which queries the ES index residing on one of the clusters hosted on the cloud. My intended query JSON DSL looks like this, { "query" :{ "bool": { …
0
votes
0 answers

Class anonymous class derived from HttpClientConfigCallback() must be declared abstract or implement abstract method

I am trying to set up an Elasticsearch high level rest client to connect with an already set up ES cluster via Http Host setup and regular credential authentication. I am setting this up to ingest data from my local system to the central cluster,…
0
votes
1 answer

How can we ingest data to elastic search through java without logstash and beats

How can we ingest data to elastic search through java without logstash and beats is there any option like kafka or something like using only java without any tools
0
votes
1 answer

ElasticSearch MultiMatchQuery match value on list of objects with condition

I have an index in which objects have arrays of objects inside: { "id": "someID", "tags": [], "people": [ { "id": "userID", "role": "roleTARGET1", "firstName": "name", "lastName": "lastname", "fullName":…
0
votes
1 answer

Create Index Request Mapping is failing in elastic search

I am trying to create the Join data type in the elastic search index, It is working from the kibana console / via rest but when I try to create the mapping for the index programmatically it fails with the below…
Harry
  • 3,072
  • 6
  • 43
  • 100
0
votes
2 answers

Java Data Elasticsearch client appending port 9200 to url

Spring Data Elasticsearch version: org.springframework.data spring-data-elasticsearch 3.2.6.RELEASE I do not understand why my Elasticsearch…
crmepham
  • 4,676
  • 19
  • 80
  • 155
0
votes
0 answers

Getting OutOfMemoryError while calling Java High-Level REST Client API

My requirements would be I need fetch the data from ElasticsticSearch DB through Java Rest client API using spring boot. So I have written spring boot code as below. Dependency in pom.xml:
HShetty
  • 21
  • 2
  • 7
0
votes
3 answers

Spring Boot + Elastic Search : Connection Refused with Java RestHighLevelClient

I am implementing an elastic pool for my spring boot project also I am using spring boot 2.1.4 and elastic search 7.3.0. I am stuck at this. When any API trying to query it gives java.net.ConnectException: Connection refused. I want to use…
Deep Dalsania
  • 375
  • 3
  • 8
  • 22
0
votes
2 answers

how to fix NullPointerException while loading document to Elasticsearch 7.3

I want to load a JSON string to Elasticsearch version 7.3. Following is the code i am using for this. private RestHighLevelClient restHighLevelClient; String jsonString="//here the complete JSON string"; JSONObject jsonObject = new…
Lily
  • 605
  • 3
  • 15
  • 31
0
votes
1 answer

elasticsearch generate query using resthighlevel client

I have to generate below query using rest high level client and i have tried the following query but it is not able to form the query as below wanted to know where it is going wrong in my current aggregation code top hits should appear before the…