# How can I change \_score based on string lenght?

**URL:** <https://discuss.elastic.co/t/how-can-i-change--score-based-on-string-lenght/22588>\
**Category:** Elasticsearch\
**Created:** [March 9, 2015, 9:33pm UTC](https://discuss.elastic.co/t/how-can-i-change--score-based-on-string-lenght/22588 "2015-03-09T21:33:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arnaud\_Coutant](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@Arnaud\_Coutant](https://discuss.elastic.co/u/Arnaud_Coutant)\
**Post date:** [March 9, 2015, 9:33pm UTC](https://discuss.elastic.co/t/how-can-i-change--score-based-on-string-lenght/22588/1 "2015-03-09T21:33:50Z")

</div>

Dear Members,

When I get result of my multi match request based on two words I get this:

Iphone 6C OR  
Iphone 6C ARGENT

I would like that this result has the same score then order it by cheapest  
price first (float value), is it possible ?

Currently if "Iphone 6C OR" = 700 and "iphone 6C ARGENT" = 600, "Iphone 6C  
OR" is first. It's not what I want.

Thanks in advance for your help.

--  
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/24b90c36-e4dc-4c3a-b7a3-5f6285adb047%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/24b90c36-e4dc-4c3a-b7a3-5f6285adb047%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Arnaud\_Coutant](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@Arnaud\_Coutant](https://discuss.elastic.co/u/Arnaud_Coutant)\
**Post date:** [March 12, 2015, 2:47pm UTC](https://discuss.elastic.co/t/how-can-i-change--score-based-on-string-lenght/22588/2 "2015-03-12T14:47:25Z")

</div>

Any idea ?

Le lundi 9 mars 2015 22:33:50 UTC+1, Arnaud Coutant a écrit :

> Dear Members,
> 
> When I get result of my multi match request based on two words I get this:
> 
> Iphone 6C OR  
> Iphone 6C ARGENT
> 
> I would like that this result has the same score then order it by cheapest  
> price first (float value), is it possible ?
> 
> Currently if "Iphone 6C OR" = 700 and "iphone 6C ARGENT" = 600, "Iphone 6C  
> OR" is first. It's not what I want.
> 
> Thanks in advance for your help.

--  
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/224f67d6-3e36-4d3b-8a16-f13e5ac0cbb7%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/224f67d6-3e36-4d3b-8a16-f13e5ac0cbb7%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:27am UTC](https://discuss.elastic.co/t/how-can-i-change--score-based-on-string-lenght/22588/3 "2017-07-06T00:27:13Z")

</div>


