Hello,
I have a mapping like this
"user": { "mappings": { "properties": { "profile": { "properties": { "cars": {...} }}}}}
I am trying to access the profile.cars from a filter script with doc["profile.cars"] and i get No field found for [profile.cars] in mapping with types []
Cars is an array and i want to get the length.
I have no problem accessing it from a script_score with params._source.profile.cars.
Or maybe i'm doing it wrong. My objective is to filter out any documents that don't have a certain model of car in the profile.cars array.
Using ES7.6.2
Thank you