I'm a bit stumped as to why I can't get a groovy script to run from the DIH. I'm sure it's something braindead I'm missing. The script looks like this in data-config.xml:
<script language="groovy"><![CDATA[ import java.security.MessageDigest import java.util.HashMap def createHashId(HashMap<String,Object>row, org.apache.solr.handler.dataimport.ContextImpl context ) { // do groovy stuff return row } ]]> </script> When I run the import, I get the following error: Caused by: java.lang.NoSuchMethodException: No signature of method: org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.createHashId() is applicable for argument types: (java.util.HashMap, org.apache.solr.handler.dataimport.ContextImpl) values: [[Format:Reports, Credits:, EnteredBy:Corey Holland, ...], ...] at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.invokeImpl(GroovyScriptEngineImpl.java:364) at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.invokeFunction(GroovyScriptEngineImpl.java:160) ... 13 more The script runs fine from the shell so I don't believe there are any groovy errors. Thanks in advance for any tips. Gary This electronic message contains information generated by the USDA solely for the intended recipients. Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil or criminal penalties. If you believe you have received this message in error, please notify the sender and delete the email immediately.