# Delimited\_payload\_filter to affect scoring of documents

**URL:** https://discuss.elastic.co/t/delimited-payload-filter-to-affect-scoring-of-documents/21139
**Category:** Elasticsearch
**Created:** [December 8, 2014, 10:50am UTC](https://discuss.elastic.co/t/delimited-payload-filter-to-affect-scoring-of-documents/21139 "2014-12-08T10:50:15Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Saurabh\_Gupta](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@Saurabh\_Gupta](https://discuss.elastic.co/u/Saurabh_Gupta)
#### Post date: [December 8, 2014, 10:50am UTC](https://discuss.elastic.co/t/delimited-payload-filter-to-affect-scoring-of-documents/21139/1 "2014-12-08T10:50:15Z")

</div>

I was recently working on Solr and i was able to give individual term boost  
using approach from article  
[http://java.dzone.com/articles/payloads-are-neat-wheres](http://java.dzone.com/articles/payloads-are-neat-wheres).

what I basically want is that, if i have 2 documents

doc 1  
{ "content" : "life is good|3.5" }

doc 2  
{ "content" : "good|4.5 things happen" }

so if i search for "good" then doc2 should have higher score than doc1.  
I was able to accomplish this by using the approach in solr, but i have  
tried so much to implement the same thing ES but failed.

Can anyone provide me a complete example or something which can help me do  
the same scoring in ES.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/e20e256c-0e29-40b1-9a48-b5524c6d0a8f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e20e256c-0e29-40b1-9a48-b5524c6d0a8f%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![Saurabh\_Gupta](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@Saurabh\_Gupta](https://discuss.elastic.co/u/Saurabh_Gupta)
#### Post date: [December 8, 2014, 11:04am UTC](https://discuss.elastic.co/t/delimited-payload-filter-to-affect-scoring-of-documents/21139/2 "2014-12-08T11:04:25Z")

</div>

Using ES 1.4.0

On Monday, 8 December 2014 16:20:15 UTC+5:30, Saurabh Gupta wrote:

> I was recently working on Solr and i was able to give individual term  
> boost using approach from article  
> [http://java.dzone.com/articles/payloads-are-neat-wheres](http://java.dzone.com/articles/payloads-are-neat-wheres).
> 
> what I basically want is that, if i have 2 documents
> 
> doc 1  
> { "content" : "life is good|3.5" }
> 
> doc 2  
> { "content" : "good|4.5 things happen" }
> 
> so if i search for "good" then doc2 should have higher score than doc1.  
> I was able to accomplish this by using the approach in solr, but i have  
> tried so much to implement the same thing ES but failed.
> 
> Can anyone provide me a complete example or something which can help me do  
> the same scoring in ES.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/6d153b73-8940-4793-ab03-70d6a9f185b3%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6d153b73-8940-4793-ab03-70d6a9f185b3%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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: [July 6, 2017, 12:45am UTC](https://discuss.elastic.co/t/delimited-payload-filter-to-affect-scoring-of-documents/21139/3 "2017-07-06T00:45:02Z")

</div>


