Skip to main content

All Questions

1 vote
1 answer
172 views

Elasticsearch Java High Level Client 7.3.1 :Aggregation for Index wise hits in search Response

I am using ES 7.3.1 and Elasticsearch high level client 7.3.1 We have an alias which comprises of 3 indexes. Alias Name : employee_search Indexes in this alias : contract_employee,permanent_employee,...
JavaDeveloper's user avatar
1 vote
1 answer
3k views

How to sort a composite aggregation on the basis of a sub aggregation ? Below is the query

GET myIndex/_search { "from": 0, "size": 0, "query": { "bool": { "must": [ { "term": { "user_id": { "value": "a88604b0", "...
Piyush Pant's user avatar
1 vote
1 answer
3k views

How to aggregate a 'non - keyword' field in elasticsearch?

I am trying to write an elastic-search query that should list all distinct values held by various fields in a document.When the fields are of type Keyword,the term aggregate query works fine and I can ...
soumitra goswami's user avatar