Created
October 17, 2017 09:24
-
-
Save davidsf/ae307c1b86f7c8d9cc3f3d99e8232951 to your computer and use it in GitHub Desktop.
filtered query 2.x
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"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