RainTown
(Kevin Maguire)
February 6, 2025, 9:43pm
2
Please share an example of the (to your understanding, incorrectly) matching document, the whole document, and the mapping please.
There's specific guidance in the docs for must_not clauses and nested queries. I've no idea if it's helpful/applicable here.
You posted a pretty similar Q recently !?
I use the following DSL query
"size": 25,
"query": {
"bool": {
"must": [
{
"term": {
"hcAccountabilityOfficeCode.keyword": {
"value": "550"
}
}
},
{
"nested": {
"query": {
"term": {
"hearingActionDetails.haaActionTypeCode.keyword": {
"value": "SU"
}
}
},
"path": "hearingActionDetails",
"ignore_unmapped": false,
"score_mode": "none",
"boost": 1.0
}
},
{
"nested": {
"query": …
which is still open, waiting on your input.