Skip to content

Instantly share code, notes, and snippets.

@dyangrev
Created September 18, 2014 00:07
Show Gist options
  • Save dyangrev/0b1b59c0e2c7684464c0 to your computer and use it in GitHub Desktop.
Save dyangrev/0b1b59c0e2c7684464c0 to your computer and use it in GitHub Desktop.
Run post request to http://10.208.200.102:9200/grm/guest_property/_search
{
"from": 0,
"size": 0,
"query": {
"match_all": {}
},
"aggs": {
"interests": {
"terms": {
"field": "interests.value",
"size": 0
}
}
}
}
for all properties,
{
"from": 0,
"size": 0,
"query": {
"term": {
"propertyId": 362
}
},
"aggs": {
"interests": {
"terms": {
"field": "interests.value",
"size": 0
}
}
}
}
for single property
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment