Delimited_payload_filter to affect scoring of documents

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.

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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/e20e256c-0e29-40b1-9a48-b5524c6d0a8f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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.

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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/6d153b73-8940-4793-ab03-70d6a9f185b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.