Skip to content

Instantly share code, notes, and snippets.

@phirschybar
Created May 18, 2014 02:05
Show Gist options
  • Save phirschybar/a469198361fb23d0dbc0 to your computer and use it in GitHub Desktop.
Save phirschybar/a469198361fb23d0dbc0 to your computer and use it in GitHub Desktop.
{
"index": "index_name",
"from": 0,
"size": 30,
"body": {
"min_score": 0.5,
"_source": {
"include": [
"id",
"name",
"image"
]
},
"query": {
"filtered": {
"filter": {
"bool": {
"must_not": {
"missing": {
"field": "image",
"existence": true,
"null_value": true
}
}
}
}
}
},
"sort": {
"_score": {
"order": "desc"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment