Skip to content

Tag: elasticsearch

How to add Bucket Sort to Query Aggregation

I have a ElasticSearch Query that is working well (curl), is my first Query, First I am filtering by Organization (Multitenancy), then group by Customer, Finally sum the amount of the sales but I only want to have the 3 best customers. My question is.. How to build the aggregation with the AggregationBuilders…

IndexNotFoundException[no such index]

I was running my first elasticsearch test case, I am using Java as the solution perspective to do elasticsearch experiment. it works perfectly fine in eclipse Debug Mode, the debug mode result: But when I try this on in normal Run application mode, I am getting the following exception and I have no idea at al…