Search inside the first element of an array

Trying to do something like

script : {
script: "_source._matchedCrmRecords[0].bean_module.size() != 0"
}

ideas?

--
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/6384c2ea-3764-48f8-88d9-99e5ffc59d7f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.