Hello,
I have a question about using a terms query while specifying an array of potential values. It seems to me the query uses a boolean or to match and I would like it to use a boolean AND... for example, consider this query fragment:
...
"bool": {
"must": [
{
"nested": {
"path": "document.section",
"query": {
"terms": {
"document.section.flags": [
"full-time",
"settlement-summary"
]
}
}
}
},
...
When I execute this query, I end up getting results that have just full-time
instead of getting only results that have full-time
and settlement-summary
. I've been googling around and can't seem to find a way to change that behavior?
Regards,
John