Skip to content

Instantly share code, notes, and snippets.

@Vineeth-Mohan
Created October 21, 2013 13:51
Show Gist options
  • Save Vineeth-Mohan/7084209 to your computer and use it in GitHub Desktop.
Save Vineeth-Mohan/7084209 to your computer and use it in GitHub Desktop.
{
"facets": {
"0": {
"date_histogram": {
"field": "TimeStamp",
"interval": "1d"
},
"facet_filter": {
"fquery": {
"query": {
"filtered": {
"query": {
"query_string": {
"query": "Events.Event:gujarat"
}
},
"filter": {
"bool": {
"must": [
{
"match_all": {}
},
{
"range": {
"TimeStamp": {
"from": 1357041625664,
"to": "now"
}
}
},
{
"fquery": {
"query": {
"query_string": {
"query": "Events.Entities.Country.entity:US"
}
},
"_cache": true
}
},
{
"range": {
"TimeStamp": {
"from": 1361907105925,
"to": "2013-08-23T06:14:15.578Z"
}
}
},
{
"bool": {
"must": [
{
"match_all": {}
}
]
}
}
]
}
}
}
}
}
}
}
},
"size": 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment