Should non-nested queries on fields in nested documents work?

I have defined a nested document in my mapping. If I query a field in the nested document as if it was any other field, I get no results. If I include the nested path in my query, I get results. Is this the expected behavior? The reason is that Kibana can see these nested fields but not create visualizations on them even if they have nothing to do with the nested property.

1 Like

Yeah, what you're seeing is the expected behavior. You can think of nested objects as if they're in separate documents. You can only query those fields with a nested query.

Kibana has very limited support for nested fields

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.