elasticsearch-java-api Questions

4

Solved

I hava tried many version of elasticsearch-java but none of it can work. So, my elasticsearch version is 7.5.2, and the error resonse is like this: org.elasticsearch.client.ResponseException: metho...
Almuce asked 17/8, 2022 at 7:55

2

It might be a dumb question but i was unable to find answer. If I am having 3 nodes in my cluster so do need to provide the IP and Port of each node while creating transport client so that i can co...
Commonalty asked 20/10, 2017 at 7:10

4

I am using elasticsearch 6.0.1 and on BulkRequest request = new BulkRequest(); I am getting the below error. I have checked online, mostly people said that this happens if I have different versions...

2

Solved

I’m currently using Elasticsearch V2.3.1. I want to use the following Elasticsearch query in Java. POST /twitter/_update_by_query { "script": { "inline": "ctx._source.List = [‘Item 1’,’Item 2’]...
Helicon asked 4/5, 2016 at 22:5

2

Solved

The problem: Since the upgrading from ES-5.4 to ES-7.2 I started getting "data too large" errors, when trying to write concurrent bulk request (or/and search requests) from my multi-threaded Java a...
Engrail asked 5/2, 2020 at 11:54

2

Solved

I have build a web app on top of elasticsearch. I would like to do a multiple filter using Java. Elasticsearch Query: { "query": { "bool": { "must": [ {"match": { "T": "TEXT"}, "match": { ...
Blowpipe asked 27/6, 2016 at 20:19

2

I have tried below code it works fine but it uses TransportClient to delete all documents. DeleteByQueryRequestBuilder deleteByQueryRequestBuilder = DeleteByQueryAction.INSTANCE.newRequestBuilder(...

1

Solved

I'm facing SocketTimeoutException while retrieving/inserting data from/to elastic. This is happening when there are around 10-30 request/second. These requests are combination of get/put. Here is ...

1

Solved

I am using Spring Boot and ElasticSearch. When I am trying to upsert using Spring, it is throwing DocumentMissingException when there is no document present in the ElasticSearch. The same code work...

1

Solved

I wanted to know more about elastic delete, it's Java high level delete api & weather it's feasible to perform bulk delete. Following are the config information Java: 8 Elastic Version: 7.1....
Charlenacharlene asked 5/7, 2019 at 9:30

2

Solved

I'm trying to create a dummy SearchResponse object by passing the values manually to the constructor. I have a JUnit test class for which I'm using this dummy value to mock the actual method call. ...
Brussels asked 21/8, 2014 at 11:30

3

Solved

Elasticsearch: 6.1.2 I have an input query via JSON and would like to use the high level Java API to construct a search request using that query data. String jsonQuery = "..." SearchRequest searc...
Laxation asked 23/1, 2018 at 10:9

2

We are running elasticsearch on AWS which currently supports elasticsearch 6.3 as the latest version. We have a business case where we need to update all the documents in the index and remove one ...
Metope asked 30/11, 2018 at 9:3

3

Solved

I have set up a elasticsearch server using AWS elasticsearch service (Not EC2). It gave me an endpoint https://xxx-xxxxxxxx.us-west-2.es.amazonaws.com/ and if I click this endpoint(Note that there ...

1

Solved

According to the documentation of multi match query (https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-multi-match-query.html) it is possible to search multi properties by p...
Cochrane asked 28/3, 2017 at 7:29

2

Solved

According to the official documentation Update API - Upserts one can use scripted_upsert in order to handle update (for existing document) or insert (for new document) form within the script. The t...
Ragamuffin asked 2/8, 2016 at 11:45

2

I am trying to connect to my server using Elasticsearch Java NodeBuilder Client. However I do not see any option to specify my server address and port (like we can do in Transport Client, using add...
Clinkscales asked 1/12, 2014 at 18:53

1

Solved

Looking for pointers to know how Groovy script can be invoked using java api. test.groovy def value = dynamicValue return value Want to translate following query in Java: GET /test-index/_sea...
Heelandtoe asked 14/8, 2015 at 9:43
1

© 2022 - 2025 — McMap. All rights reserved.