faceted search - elasticsearch: is it possible to order aggregations? -


can add weight each aggregation make sure return in order, example: category, manufacturer, color instead of in order shown below:

{     "aggs": {         "category": { "terms": { "field": "category" } },         "manufacturer": { "terms": { "field": "manufacturer" } },         "color": { "terms": { "field": "color" } }     } }  // results  "color": {     "buckets": [ ... ] } "category": {     "buckets": [ ... ] } "manufacturer": {     "buckets": [ ... ] } 

can add weight each aggregation make sure return in order, example: category, manufacturer, color instead of in order shown below

the response json , json/javascript object keys order undefined.

source: http://www.json.org/

an object unordered set of name/value pairs.


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -