How to query documents contain nested field's element length > 0

Hi,

Here is school entity mapping

school:
mappings:
name: ~
rankings:
type: "nested"
properties:
id: ~

I get a problem with query for finding all school contains rankings element
length > 0. I try use filter script but it throws error. I don't know how
to fix it. Pls help me resolve this issue. Thanks.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/1da1fe9d-0196-4dcd-9342-59d6f46068a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.