Skip to content

Instantly share code, notes, and snippets.

@davidsf
Created October 17, 2017 09:24
Show Gist options
  • Save davidsf/ae307c1b86f7c8d9cc3f3d99e8232951 to your computer and use it in GitHub Desktop.
Save davidsf/ae307c1b86f7c8d9cc3f3d99e8232951 to your computer and use it in GitHub Desktop.
filtered query 2.x
"query": {
"filtered": {
"query": {
"bool": {
"must": [
{
"query_string": {
"default_field": "titulo",
"query": "malaga cromo",
"default_operator": "and"
}
}
]
}
},
"filter": {
"and": [
{
"term": {
"situacion": "v"
}
}
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment