Skip to content

Instantly share code, notes, and snippets.

@athoune
Created September 30, 2013 10:03
Show Gist options
  • Save athoune/6761751 to your computer and use it in GitHub Desktop.
Save athoune/6761751 to your computer and use it in GitHub Desktop.
{"facets": {
"facet1": {
"terms_stats": {
"key_field": "@fields.path",
"value_field": "@fields.time",
"order": "total",
"size": 20
},
"facet_filter": {
"fquery": {
"query": {
"filtered": {
"query": {
"bool": {
"should": [
{
"query_string": {
"query": "*"
}
}
]
}
},
"filter": {
"bool": {
"must": [
{
"match_all": {}
},
{
"range": {
"@timestamp": {
"from": 1379282410000,
"to": 1379455199000
}
}
},
{
"bool": {
"must": [
{
"match_all": {}
}
]
}
}
]
}
}
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment