Elasticsearch scoring plugin with access to another document


(Ben) #1

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!


(Ryan Ernst) #2

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


(system) #3

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