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

(Hoan Nguyen) #1


Here is school entity mapping

name: ~
type: "nested"
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
To view this discussion on the web visit
For more options, visit

(system) #2