Skip to content

Instantly share code, notes, and snippets.

@Vineeth-Mohan
Created October 21, 2013 13:51
Show Gist options
  • Save Vineeth-Mohan/7084212 to your computer and use it in GitHub Desktop.
Save Vineeth-Mohan/7084212 to your computer and use it in GitHub Desktop.
{
"query": {
"filtered": {
"query": {
"bool": {
"should": [
{
"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": {}
}
]
}
}
]
}
}
}
},
"highlight": {
"fields": {
"Events.Event": {}
},
"fragment_size": 2147483647,
"pre_tags": [
"@start-highlight@"
],
"post_tags": [
"@end-highlight@"
]
},
"size": 50,
"sort": [
{
"_score": {
"order": "desc"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment