Alexander -
Thank you for the help. Here is the JSON for the example objects that I posted properly formatted:
{
"objectNumber": "1",
"nestedObjects": [
{
"category": "position",
"tag": "2300"
},
{
"category": "scope",
"tag": "External"
}
]
}
{
"objectNumber": "2",
"nestedObjects": [
{
"category": "position",
"tag": "2300"
},
{
"category": "scope",
"tag": "Internal"
}
]
}
{
"objectNumber": "3",
"nestedObjects": [
{
"category": "position",
"tag": "2300"
},
{
"category": "scope",
"tag": "Internal"
}
]
}
I have been working on following your guidance but keep struggling with how to pair two filter queries with each other. I keep getting different forms of :
"[filtered] query malformed, no start_object after query name"
Is there documentation on how things should be nested and how to properly setup arrays of queries?
Here is as far as I've gotten. I think I'm just missing brackets or something.
{
"query": {
"filtered": [
{
"bool": {
"filter": {
"nested": {
"path": "tags",
"query": [
{
"match": {
"tags.category": "position"
}
},
{
"match": {
"tags.tag": "2200"
}
}
]
}
}
}
},
{
"bool": {
"filter": {
"nested": {
"path": "tags",
"query": [
{
"match": {
"tags.category": "scope"
}
},
{
"match": {
"tags.tag": "Internal"
}
}
]
}
}
}
}
]}
}
Your continued help would be greatly appreciated.
Thanks.
Jim K.