PayloadFactor needed in similarity(es7)

https://issues.apache.org/jira/browse/LUCENE-8014
As we can see from the link above, SimScorer.computeSlopFactor and SimScorer.computePayloadFactor were removed in 7x.

What if i need payloadfactor? How can i get this information inside the similarity?
My purpose is very simple, scored by the sum of the matched terms' payload.
e.g, we have text "i|1.2 see|2.3 a|0.1 quick|2.9 fox|3.3", analyzed by the delimited_payload filter and whitespace analyzer, as i search "quick fox", this doc scored 6.2(2.9+3.3).

Is there an alternative way to solve this?

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