core icon indicating copy to clipboard operation
core copied to clipboard

Problems running ES function scripts using the rest API

Open maurizo opened this issue 11 years ago • 1 comments

While trying to run function scripts there are errors related to missing index fields, in this case the "_score" value. The error only happens using the rest API, hitting the ES service directly works. Reference to this ticket https://my.dotcms.com/ticket/dotcms-31

maurizo avatar May 05 '15 14:05 maurizo

Problem is not the ES jar but the groovy scripting classloader failing to execute the generated script for the scoring function. The current groovy repackaged jar has many problems with the packages names due to the use of field descriptor notation such as "()[Ltype". The mayor problem is a file containing a list of proxy classes, the file is written using writeUTF() in a binary form including the string length and the proxy parameters. This file can't be changed using the current JarJar code.

maurizo avatar Jul 06 '15 22:07 maurizo