fast-elasticsearch-vector-scoring
fast-elasticsearch-vector-scoring copied to clipboard
Changed script to work with Elastic 6.0.0.
Hi,
This should be working on Elastic 6.0.0. They really simplified design of scoring scripts so it is now only one file, pretty much. Inline scripts are now depreciated so using 'source' field instead. I had to also alter test files since Elastic 6.0.0 uses Netty4Plugin now and some settings are now disabled. I tested it on real data and it seems to work, but let me know if you have any concern.
Best, Zakkery
Hi Zakkery. Thanks for the PR. I'll add my comments in-line But 1 in general - several files instead of 1 helps me keep the clutter of Plugin boiler plate away & focus only on the 2 important methods: run & compile. I would really appreciate it If you can move the clutter to separate files & keep indentation to a minimum
I broke it back into multiple files, like you suggested and fixed code according to your comments.
Hi Zakkery. note that master was changed to use float vectors instead of doubles. please review your changes against master. thanks
Hi Zakkery. note that master was changed to use float vectors instead of doubles. please review your changes against master. thanks
I just did a rebase, I guess I forgot to do it, now should be all floats and merged properly.