I'm trying to use native script for custom scoring. There are two instructions I found:
- The first one:
http://www.spacevatican.org/2012/5/12/elasticsearch-native-scripts-for-dummies/
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
1 error
- 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!