# Using payloads for scoring

**URL:** https://discuss.elastic.co/t/using-payloads-for-scoring/219476
**Category:** Elasticsearch
**Created:** [February 15, 2020, 12:13pm UTC](https://discuss.elastic.co/t/using-payloads-for-scoring/219476 "2020-02-15T12:13:05Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![divyanshumarwah](https://avatars.discourse-cdn.com/v4/letter/d/f08c70/32.png) [@divyanshumarwah](https://discuss.elastic.co/u/divyanshumarwah)
#### Post date: [February 15, 2020, 12:13pm UTC](https://discuss.elastic.co/t/using-payloads-for-scoring/219476/1 "2020-02-15T12:13:06Z")

</div>

I am working on a research project in which I need to use some specific term weights for relevance score calculation. I have indexed the term weights as payloads along with the text and looks something like this :  
"Americans|5.432 to|0.000 rate|5.466 their|6.080 ideology|3.303 on|0.000 a|0.000 liberal-to-conservative|0.000 scale|3.455 of|0.000 1|0.000 to|0.000 5.|0.000 The|0.000 average|5.201 "  
Now, I want to use these term weights in the relevance score calculation. I was searching for it and got some suggestions like implementing a custom query parser, but there is not much documentation on this. Please suggest how can I use these term weights/payloads in the relevance score calculation.

---

<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: [March 14, 2020, 12:13pm UTC](https://discuss.elastic.co/t/using-payloads-for-scoring/219476/2 "2020-03-14T12:13:08Z")

</div>

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