Inherit from AbstractSearchScript in ScriptEngine


(Itamar Benjamin) #1

Hi,
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.


(Ryan Ernst) #2

You should ignore AbstractSearchScript as it has been removed in 6.0. Instead, create your own script engine.


(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.