Function score code is perhaps the easiest to write for Elasticsearch. You do not need to create a plugin for it, simply write the code with the appropriate classes and deploy at as a jar to Elasticsearch's lib directory. Done. That said, I still prefer to write native scripts as plugins because they are logged as plugins on server startup. Far easier to debug if something goes wrong.
Two tutorials: http://www.spacevatican.org/2012/5/12/elasticsearch-native-scripts-for-dummies/ https://github.com/imotov/elasticsearch-native-script-example Cheers, Ivan On Fri, Jun 6, 2014 at 9:33 AM, virgil <[email protected]> wrote: > Good idea! One thing I am not quite clear is that writing a custom > ScoreFunction, I will have to modify elasticsearch source code and compile > it right? Or there is any other way to do it? Thank you. > > > > -- > View this message in context: > http://elasticsearch-users.115913.n3.nabble.com/ANN-Elasticsearch-Simple-Action-Plugin-tp4056971p4057232.html > Sent from the ElasticSearch Users mailing list archive at Nabble.com. > > -- > You received this message because you are subscribed to the Google Groups > "elasticsearch" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elasticsearch/1402072380650-4057232.post%40n3.nabble.com > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQAvHOhOokAKVd2creOCJ%3DGxFROqUznkChbBT4SOsWDghg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
