The index has the capability of taking custom scripting in Python, but I can't find an example of custom scripting written in Python anywhere. Does anybody have an example of a working script? One with something as simple as an if-statement would be amazing.
Take the 2-minute tour
×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free.
A simple custom scoring query using python (assuming you have the plugin installed).
|
|||||||||
|
Quoted from elasticsearch ML -
PyObject ret = interp.eval((PyCode) compiledScript); Just make sure your code pass through the |
||||
|