Skip to content

Instantly share code, notes, and snippets.

Created July 30, 2014 02:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/d98fb2c46d9a7755e882 to your computer and use it in GitHub Desktop.
Save anonymous/d98fb2c46d9a7755e882 to your computer and use it in GitHub Desktop.
{
"from": 0,
"size": 15,
"timeout": 30000,
"query": {
"filtered": {
"query": {
"constant_score": {
"filter": {
"and": {
"filters": [
{
"query": {
"match": {
"all": {
"query": "foo"
}
}
}
},
{
"range": {
"execution": "index",
"published": {
"from": null,
"to": 1406064191883,
"include_lower": true,
"include_upper": false
}
}
}
]
}
}
}
},
"filter": {
"bool": {
"must": [
{
"terms": {
"source_id": [
"s1",
"s2",
"s3"
]
}
}
]
}
}
}
},
"sort": [
{
"published": {
"order": "desc"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment