ES 6.2.3
I'm trying to write a SearchPlugin to do custom scoring, but I can't figure out how to access the doc values in my leaf score function.
The LeafScoreFunction.score() method takes a docId parameter. Is there a way to use that to get to the doc values.
Also, where is the proper place to get access to the document? In the LeafScoreFunction methods? Should I get access to it in the ScoreFunction.getLeafScoreFunction() method and pass it in to my LeafScoreFunction? Somewhere else?
Thank you very much for helping.