Hi there!

I have the following use case I'd like to implement in Solr and hence are
seeking for information onto the internals of Solr and the performance of
such an approach.

I would like to score documents matched by a query using a custom scoring
function. Generally, up to my knowledge, there are two options to achieve
this:
1) implement a custom ValueSource and use it via a FunctionQuery
2) implement a CustomScoreQuery and its customScoreProvider function that
would return a CustomScoreProvider instance that would be used for custom
scoring.

The custom scoring function is expected to score based on a reference value
and a value of a binary doc-values field.

How are FunctionQueries in contrary to a CustomScoreQuery executed? What
approach would in your opinion yield better performance, and why?

Thanks,
Dominik

Reply via email to