Questions tagged [elastic-rest-client]
8 questions
6
votes
1 answer
How to use search_after in Elastic High Level Rest Client for pagination
I am using elastic RestHighLevelClient to talk to ES. I am able to query basic queries. Although i am trying to use teh search_after api to design a paginated api from my front end queries. Although query_after is simple to use in the…

Anusha Pachunuri
- 1,389
- 4
- 18
- 39
1
vote
2 answers
Elastic rest high level api RolloverRequest
I am trying to use RolloverRequest to automatically rollover a time based index.
My index format is log-000001, log-000002 etc. and alias is log
If i'm using REST API, then I do not have to supply the new index name as rollover happens…

senseiwu
- 5,001
- 5
- 26
- 47
0
votes
1 answer
Is there a way to identify when the elastic _bulk API created a new index vs when it operated on an existing index?
I am using the Elasticsearch _bulk api to insert some data into the index.
However, what I observed is that, if an index does not exist, this API will first create an index with dynamic mappings and then index the document.
Is there a way to find…

asten_ark
- 47
- 4
0
votes
1 answer
I have to send application logs in bulk to elastic server using custom log4j2 appender
I have to send application logs in bulk to elastic server using custom log4j2 appender i have following log4j2 xml and appender class. Could you help me how to achieve this.
@Plugin(name = "ElasticAppender",category = Core.CATEGORY_NAME,elementType…

art
- 1
0
votes
2 answers
Calculate exact count of distinct values for combination of 2 fields in Elasticsearch
I have around 40 million records in my elasticsearch index. I want to calculate count of distinct values for combination of 2 fields.
Example for given set of documents:
[
{
"JobId" : 2,
"DesigId" : 12
},
{
"JobId" : 2,
"DesigId" : 4
},
…

Aman Mehta
- 303
- 1
- 12
0
votes
4 answers
How to close RestHighLevelClient 5.6.X
Below are the maven version we are using
org.elasticsearch.client
elasticsearch-rest-high-level-client
5.6.13
…

Ramesh Papaganti
- 7,311
- 3
- 31
- 36
0
votes
0 answers
how can we use ElasticSearch to prioritise search by q - full text search
how can we use ElasticSearch to prioritize the "correct" result groups based on the search word? ie. "italian food" = restaurants (group of data, it can be a category).
did ElasticSearch by default has something like that functionality, or it must…

Danik
- 1
- 2
0
votes
0 answers
Elasticsearch geo queries
We are migrating to ES and need to support different geo queries.
We use a geo_point field type in our mapping. I can see that ES supports geo_bounding_box & geo_distance but I'm trying to figure out whether they can be used for our use cases…

AAHM
- 41
- 7