Skip to content

Instantly share code, notes, and snippets.

@davidsf
Created October 17, 2017 09:10
Show Gist options
  • Save davidsf/1cee3e0be65854f05ef71a7a681b0197 to your computer and use it in GitHub Desktop.
Save davidsf/1cee3e0be65854f05ef71a7a681b0197 to your computer and use it in GitHub Desktop.
bool query
"query": {
"bool": {
"should": [
{
"multi_match": {
"query": "malaga cromo",
"fields": [
"titulo"
],
"operator": "and"
}
}
],
"filter": {
"term": { "situacion": "v" }
}
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment