I'm trying to use native script for custom scoring. There are two instructions I found:
- The first one:
When I run rake build, there's an error:
org/spacevatican/elasticsearchexample/CustomScript.java:22: error: cannot find symbol
double a = doc().numeric("a").getDoubleValue();
^ (this one actually points at the "." after doc() )
symbol: method numeric(String)
location: class DocLookup
- The 2nd link: https://github.com/imotov/elasticsearch-native-script-example
I don't understand the instruction much, from the part "The parent project org.elasticsearch.plugin:plugins". Don't know where to find this parent project! May be because I'm very new to Java so I don't understand the structure here.
Can anyone jump in for some help? Thanks a lot!