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
0 answers

AWS Elastic Search ConnectException: Operation timed out

I'm trying to access AWS open search cluster present in different AWS account(lets say ES cluster present in account A and we are trying to access it from Account B). I have performed following steps to access it Allowlist principal AWS account B…
0
votes
1 answer

FieldNamingStrategy with Spring Data Elasticsearch

I'm configuring an elasticsearch spring application, and following the docs i've created this RestHighLevelClient: @Configuration public class RestClientConfig extends AbstractElasticsearchConfiguration { @Override @Bean public…
0
votes
0 answers

How to create a multimatch query with regex in java for elasticsearch?

Im working with in Java, quarkus and elasticsearch, using quarkus-elasticsearch-rest-high-level-client and I have the following question for a search query: It is possible to do a MultiMatchQuery with regEx? beacuse in my data I have two fields:…
rolo
  • 473
  • 1
  • 5
  • 16
0
votes
1 answer

How to search data based on condition from elastic search index using RestHighLevelClient in spring boot

How to search data based on condition from elastic search index using RestHighLevelClient in spring boot . For below example . case 1 : If i search with "company_name" (ex:"DEFG") . my output should be get all matched data "company_name/address3"…
Dorayya
  • 11
  • 1
  • 6
0
votes
2 answers

How to delete data based on condition from elastic search index using RestHighLevelClient in spring boot

How to delete data based on condition from elastic search index using RestHighLevelClient in spring boot. for example from below example i want to delete from "companyaddress" based on condition -> "main_phone1" : "1" "_index" :…
Dorayya
  • 11
  • 1
  • 6
0
votes
0 answers

How to insert data to nested document in elasticsearch recursively using RestHighLevelClient using Spring Boot

I have created below index. I want to insert nested data to "companyaddress" recursively using RestHighLevelClient in Spring Boot. Means I want to insert data into companyaddress for every request time. "mappings" : { "properties" : { …
Dorayya
  • 11
  • 1
  • 6
0
votes
1 answer

Rollover api is not creating indices automatically - Java rest high level client

I'm using Java High level rest client in my project and i want to limit my indices based on document count. I'm using rollover api but its not creating indices automatically. The code will be given below. I'm creating index pattern so that my custom…
0
votes
0 answers

Scroll API misses some documents

I am trying to get all the documents from multiple indexes with Scroll Api but it doesn't return all of them. I found a similar question but op was obviously missing first set of documents. Link to the question: Elasticsearch Search Scroll API…
mcsahin
  • 63
  • 1
  • 7
0
votes
1 answer

Creating elastic search document by using Alias with Java RestHighLevelClient

I'm trying to create document in elastic search using Alias with the help of Java RestHighLevelClient. IndexName = items-0 (suffix is indent to increment over time) Alias = write-inventory-items I've created this alias to the index. Since I'm…
Psycho
  • 123
  • 1
  • 8
0
votes
1 answer

The difference between ElasticsearchTemplate and Resthighlevelclient

I used to use ElasticsearchTemplateto query ES.Recently I found a new component Resthighlevelclient can also query ES.Can anyone tell me the difference between the two and how to choose?
SuperPirate
  • 146
  • 1
  • 4
0
votes
0 answers

Created RestHighLevelClient for Elasticsearch won't use SSL

I am trying to connect to an existing Elasticsearch instance. The instance is set up and working fine, which I can confirm by accessing it through the browser under https://localhost:9200. I am using Spring Data Elasticsearch version 4.1.2 and I am…
0
votes
1 answer

Elasticsearch rest client http over https issue

I am trying the following API, @Autowire private final RestHighLevelClient restHighLevelClient; var restClient = restHighLevelClient.getLowLevelClient(); Response response = null; try { var request = new Request("GET",…
v78
  • 2,803
  • 21
  • 44
0
votes
2 answers

ElasticSearch SearchRequest not returning must match on first element in the document

I have the following documents inserted in an ElasticSearch domain. {"depID:": "5656", "employeeID": "7777", "jobID": "2345"} {"depID:": "6767", "employeeID": "9999", "jobID": "2345"} {"depID:": "7676", "employeeID": "8888", "jobID": "2345"} When I…
0
votes
1 answer

How to Create multiple aggregation using Java API in ElasticSearch

I have below ElasticSeach query What should be equivalent Java api code for this GET my_index/_search { "aggs": { "bucket_id": { "terms": { "field": "id" , "size": 1000 }, "aggs": { "bucket_name": { …
Abhishek
  • 71
  • 4
0
votes
1 answer

How to translate Elastic Search query in Java by using the query builder?

I am trying to translate the following elastic search query in Java, using the query builder? Can someone give any ideas of it? GET /_search { “size”: 1, “sort”: [ { “Date”: { “order”: “desc” } } ] }