Elasticsearch scoring plugin with access to another document

Hello,

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?

Thanks!

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.