Skip to content

Tag: elasticsearch

ElasticsearchClient 7.16 mapping source from JSON file

I’m migrating our app to new ElastisearchClient for Java. We have few mapping/setting/properties configurations created in JSON files like here Elastic mapping source 7.15. Is it still possible to map sources as in these examples? Or is it fully migrated to: builders and functional patterns Currently, w…

ElasticSearch how to aggregation the “copy_to” field

I need to group by 9 fileds and get the count for each group in ElasticSearch, the orignal code use the “Script” and the performance is bad so i need to optimize it. I managed to create a new field and use “copy_to”, but when I aggregate with the new filed i found some problem. I use t…

Elasticsearch 7 – query with raw JSON of Kibana

Recently I’ve started using the Elasticsearch (7.6.x) with Java backend (I’m pretty much a beginner in ES) and I have a general question, I’ve searched for that but didn’t find an answer: My workflow goes like this: I open kibana’s dev tools console and come up with a query to se…