# Elasticsearch score of the array item

**URL:** <https://discuss.elastic.co/t/elasticsearch-score-of-the-array-item/112752>\
**Category:** Elasticsearch\
**Created:** [December 21, 2017, 6:01am UTC](https://discuss.elastic.co/t/elasticsearch-score-of-the-array-item/112752 "2017-12-21T06:01:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![HilalB](https://avatars.discourse-cdn.com/v4/letter/h/e95f7d/32.png) [@HilalB](https://discuss.elastic.co/u/HilalB)\
**Post date:** [December 21, 2017, 6:01am UTC](https://discuss.elastic.co/t/elasticsearch-score-of-the-array-item/112752/1 "2017-12-21T06:01:43Z")

</div>

I have a field "clour" : ["pink","blue"]. When I want to search it, I want to match the max relevant one because sometimes I have docs like "clour" : ["pink","pink"] so it should score each element of the array and take the max one. Is it possible?

---

<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:** [January 18, 2018, 6:01am UTC](https://discuss.elastic.co/t/elasticsearch-score-of-the-array-item/112752/2 "2018-01-18T06:01:51Z")

</div>

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