Elasticsearch scoring plugin with access to another document


I am attempting to write a native plugin that scores documents relative to properties of a given document, call it X.

A naive approach is to pass the properties of X to the plugin as parameters, but this exposes the inner workings of the scoring.

Ideally, the ID of X could be passed to the script, which could lookup the necessary properties and compute the score. I don't see any way to access X from a script... is this possible?


Scoring is meant to access a single document at a time, in docid order. You can't jump to another document.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.