I see, unfortunately I don't think you can do this at the moment. That being said, you might find this example interesting:
https://github.com/imotov/elasticsearch-native-script-example/blob/master/example/lookup.sh https://github.com/imotov/elasticsearch-native-script-example/blob/master/src/main/java/org/elasticsearch/examples/nativescript/script/LookupScript.java -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/9ce38fdb-03df-4706-9e18-d8fa6778d6fc%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.