logo
Search
showing results for - "elasticsearch aggregation unique values"
Monica
23 Sep 2017
1GET /_search
2{
3  "size": 0, // don't return any documents, just the aggregation
4  "aggs" : {
5    "distinctValues" : { // this can be any label you want
6      "terms" : {
7        "field" : "path.to.field", // field to be aggregated
8        "size" : 500 // how many unique values to return
9      }
10    }
11  }
12}
source
similar questions
filtering an array for unique valuesfind unique values in object javascriptget unique id angularjs get distinct values from arraymongoose unique fieldangular 10 get unique values from array of objectsget an array with unique valuesjs library for unique id uniqidmongoose unique subdocumenthow to use uniqid
queries leading to this page
elasticsearch aggregation unique valueselasticsearch aggregation distinct valueselasticsearch aggregation unique values count elasticsearch aggregation count unique valuesaggregation unique names elasticsearchelasticsearch unique count aggregationelasticsearch aggregation uniqueelasticsearch aggregation unique countelasticsearch aggregation unique values
privacy policyterms of useinstagram
Crafted with  ♥  for everyone

sign in to continue
your answer for
you will get a confirmation link on this - you will have to click that for successful submission of your answer. we require this to keep the website free of spam, bots and unhelpful content
please ensure to add code which is syntactically corrent and executes properly
sign in to continue
ask question on maxinterview
you will get a confirmation link on this - you will have to click that for successful submission of your question. we require this to keep the website free of spam, bots and unhelpful content
please be clear, to the point and respectful
sign in to continue