A web skeleton built using HTML and CSS.
GET bank/account/_search { "size": 0, "aggs": { "states": { "terms": { "field": "state.keyword" } } } }
GET bank/account/_search { "size": 0, "query": { "match_all": {} }, "aggs": { "states": { "terms": { "field": "state.keyword" } } } }
GET bank/account/_search { "size": 0, "query": { "match": { "state.keyword": "CA" } }, "aggs": { "states": { "terms": { "field": "state.keyword" } } } }
GET bank/account/_search { "size": 0, "query": { "bool": { "must": [ {"match": {"state.keyword": "CA"}}, {"range": {"age": {"gt": 35}}} ] } }, "aggs": { "states": { "terms": { "field": "state.keyword" } } } }
GET bank/account/_search { "size": 0, "query": { "bool": { "must": [ {"match": {"state.keyword": "CA"}}, {"range": {"age": {"gt": 35}}} ] } }, "aggs": { "states": { "terms": { "field": "state.keyword" }, "aggs": {"avg_bal": {"avg": {"field": "balance"} }} } } }
GET bank/account/_search { "size": 0, "query": { "match": {"state.keyword": "CA"} }, "aggs": { "over35":{ "filter": { "range": {"age": {"gt": 35}} }, "aggs": {"avg_bal": {"avg": {"field": "balance"} }} } } }
GET bank/account/_search { "size": 0, "aggs": { "state_avg": { "terms": { "field": "state.keyword" }, "aggs": {"avg_bal": {"avg": {"field": "balance"}}} }, "global_avg": { "global": {}, "aggs": {"avg_bal": {"avg": {"field": "balance"}}} } } }