I am using elasticsearch-dsl-py and would like to filter on a term that is contained inside another one like this:
"slug": {
"foo": "foo-slug",
"bar": "bar-slug "
}
What I do is this :
search.query(‘filtered’, filter={"term": {"slug.foo": "foo-slug"}})
I would prefer something like
search.filter(term, slug.foo="foo-slug")
But I can’t as keyword can’t include dots.