# PayloadFactor needed in similarity(es7)

**URL:** <https://discuss.elastic.co/t/payloadfactor-needed-in-similarity-es7/240880>\
**Category:** Elasticsearch\
**Created:** [July 13, 2020, 2:10am UTC](https://discuss.elastic.co/t/payloadfactor-needed-in-similarity-es7/240880 "2020-07-13T02:10:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chembohuang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chembohuang/32/95903_2.png) [@chembohuang](https://discuss.elastic.co/u/chembohuang)\
**Post date:** [July 13, 2020, 2:10am UTC](https://discuss.elastic.co/t/payloadfactor-needed-in-similarity-es7/240880/1 "2020-07-13T02:10:43Z")

</div>

[https://issues.apache.org/jira/browse/LUCENE-8014](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?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 10, 2020, 2:10am UTC](https://discuss.elastic.co/t/payloadfactor-needed-in-similarity-es7/240880/2 "2020-08-10T02:10:55Z")

</div>

Closed on August 10, 2020, 2:10am UTC

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