# What is the use of payload?

**URL:** https://discuss.elastic.co/t/what-is-the-use-of-payload/183838
**Category:** Elasticsearch
**Created:** [June 1, 2019, 9:25pm UTC](https://discuss.elastic.co/t/what-is-the-use-of-payload/183838 "2019-06-01T21:25:25Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![grefon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/grefon/32/45747_2.png) [@grefon](https://discuss.elastic.co/u/grefon)
#### Post date: [June 1, 2019, 9:25pm UTC](https://discuss.elastic.co/t/what-is-the-use-of-payload/183838/1 "2019-06-01T21:25:25Z")

</div>

The documentation describes the plugin "Delimited Payload Token Filter":  
[https://www.elastic.co/guide/en/elasticsearch/reference/7.0/analysis-delimited-payload-tokenfilter.html](https://www.elastic.co/guide/en/elasticsearch/reference/7.0/analysis-delimited-payload-tokenfilter.html)

What is the use of it?  
How can I use it?

I understand that in some way you can raise the price of the term in the string.  
"foo|1.0 bar|50.0"  
Evaluation after the term may somehow affect the relevance?

---

<div class="post-metadata">

### Author: ![grefon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/grefon/32/45747_2.png) [@grefon](https://discuss.elastic.co/u/grefon)
#### Post date: [June 2, 2019, 3:24pm UTC](https://discuss.elastic.co/t/what-is-the-use-of-payload/183838/2 "2019-06-02T15:24:10Z")

</div>

No ideas?

---

<div class="post-metadata">

### Author: ![softwaredoug](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/softwaredoug/32/22681_2.png) [@softwaredoug](https://discuss.elastic.co/u/softwaredoug)
#### Post date: [June 2, 2019, 4:59pm UTC](https://discuss.elastic.co/t/what-is-the-use-of-payload/183838/3 "2019-06-02T16:59:22Z")

</div>

It's an advanced feature, and to really use it you need to get into the realm of plugins to use per-term metadata to do something in your application

One example would be to weigh an occurrence of a term differently, another might be to tag the part of speech or type of entity of a term. Is "bob" a person or is "bob" the verb for 'bobbing up and down'

I would google around for "Lucene payloads" to get a rough idea of all their applications

---

<div class="post-metadata">

### Author: ![grefon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/grefon/32/45747_2.png) [@grefon](https://discuss.elastic.co/u/grefon)
#### Post date: [June 2, 2019, 5:18pm UTC](https://discuss.elastic.co/t/what-is-the-use-of-payload/183838/4 "2019-06-02T17:18:22Z")

</div>

Thanks for the answer!  
It turns out that there is a filter, but elasticsearch itself is not able to do anything with a payload and need to write a plugin in which you need to rewrite the similarity for Lucene to take into account the payload?

---

<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: [June 30, 2019, 5:18pm UTC](https://discuss.elastic.co/t/what-is-the-use-of-payload/183838/5 "2019-06-30T17:18:23Z")

</div>

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