I'm trying to filter results based on whether an array field has at least one element from another set.
I have a field containing an array of strings eg:
_source: {
...
keywords: [
"Data Science",
"Chemistry",
"Biology",
"Computer Science",
"Economics"
]
}
I'd like to filter the results such that keywords contain at least one of a list of values, eg:
> ["History","Biology"] # would return the above document
> ["History","Geography"] # would not
It doesn't really matter how many it contains, just that it matches at least one of them.
I tried the terms query, but that does not give me any results