Skip to content

Instantly share code, notes, and snippets.

@brusic
Created December 30, 2013 17:32
Show Gist options
  • Save brusic/8185134 to your computer and use it in GitHub Desktop.
Save brusic/8185134 to your computer and use it in GitHub Desktop.
facet filter example
{
"query": {
"match_all": {}
},
"filter": {
"term": {
"model": "vw"
}
},
"facets": {
"colorfacet": {
"terms": {
"field": "color"
},
"facet_filter": {
"term": {
"model": "vw"
}
}
},
"modelfacet": {
"terms": {
"field": "model"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment