Relative Content

Tag Archive for elasticsearchelastic-stackelasticsearch-8

How to create the new index based on aggregation in elasticsearch

POST /_reindex?wait_for_completion=false //reindexing { “source”: { “index”: “as.event-154”, “aggs”: { “group”: { “terms”: { “field”: “ancestor_id”, “size”: 1 // note this }, “aggs”: { “group_docs”: { “top_hits”: { “size”: 10, “_source”: false, “sort”: [ { “event_id.keyword”: { “order”: “desc” } } ] } } } }, “bucketcount”: { “stats_bucket”: { “buckets_path”: “group._count” } } } […]