I'm trying to write a custom script engine for elastic search. I noticed elastic comes with AbstractSearchScript class I can extend in order to tune the search. However, this class has a private protected method setLookup which isn't called explicitly from the elastic search core code, and cannot be called from the plugin itself - when I call it I get IllegalAccessException which makes sense since the class and my script are loaded with different class loaders.
so - who calls it? all methods in AbstractSearchScript are using the lookup variable set by this function, so it is basically unusable for me now.