# Multi-value field scoring

**URL:** <https://discuss.elastic.co/t/multi-value-field-scoring/10025>\
**Category:** Elasticsearch\
**Created:** [December 10, 2012, 11:40pm UTC](https://discuss.elastic.co/t/multi-value-field-scoring/10025 "2012-12-10T23:40:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![y\_itay](https://avatars.discourse-cdn.com/v4/letter/y/76d3ee/32.png) [@y\_itay](https://discuss.elastic.co/u/y_itay)\
**Post date:** [December 10, 2012, 11:40pm UTC](https://discuss.elastic.co/t/multi-value-field-scoring/10025/1 "2012-12-10T23:40:16Z")

</div>

Hey,

I'm trying to find a way in ES or in Lucene to change the scoring of a multi  
-value field.  
Today it looks like that the multi-value field is being treated as bag of  
words.  
I want to be able to calculate the score per each value in the multi-value and  
use the max scored value in the document score at the end.

For example:

1. id: 1, Title: "new Sony Playstation", "ps 3", "game console for TV"
2. id: 2, Title: "Sony Playstation", "console game 3", "brand new  
Playstation 3"
3. id: 3, Title: "Brand sony console", "Best console sony playstation",  
"new sony playstation 3"

Input keywords: "sony, "new", "playstation"  
The order of the result should be: #1, #2, #3

ES will return the results as follow because #2, #3 has more keywords and  
#1 has other keywords in the title which aren't relevant to what I'm  
searching:  
id: 2, Title: Sony Playstation, console game 3, brand new Playstation 3  
id: 3, Title: Brand sony console, Best console sony playstation, new sony  
playstation 3  
id: 1, Title: new Sony Playstation, ps 3, game console for TV

Is there any specific query or customization I can do in order to change  
the scoring? The only way I thought about is to break these title into  
different documents which doesn't look like the best solution but it seemed  
like there is no other option.

Thanks,  
Itay

--

---

<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, 3:00am UTC](https://discuss.elastic.co/t/multi-value-field-scoring/10025/2 "2017-07-06T03:00:28Z")

</div>


