# I would like to ask a question about the multi-value field taking the previous one according to the matching degree

**URL:** <https://discuss.elastic.co/t/i-would-like-to-ask-a-question-about-the-multi-value-field-taking-the-previous-one-according-to-the-matching-degree/203555>\
**Category:** Elasticsearch\
**Created:** [October 15, 2019, 3:32am UTC](https://discuss.elastic.co/t/i-would-like-to-ask-a-question-about-the-multi-value-field-taking-the-previous-one-according-to-the-matching-degree/203555 "2019-10-15T03:32:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yanglingqiang](https://avatars.discourse-cdn.com/v4/letter/y/8e7dd6/32.png) [@yanglingqiang](https://discuss.elastic.co/u/yanglingqiang)\
**Post date:** [October 15, 2019, 3:32am UTC](https://discuss.elastic.co/t/i-would-like-to-ask-a-question-about-the-multi-value-field-taking-the-previous-one-according-to-the-matching-degree/203555/1 "2019-10-15T03:32:02Z")

</div>

![TIM%E5%9B%BE%E7%89%8720191015110955](https://us1.discourse-cdn.com/elastic/original/3X/f/4/f47fdcf30b9281b1774051868693031624d07f4e.png)  
The field "descript" as shown is a multi-value. Then type "led light" to query, then what I want is that the data in the "descript" field in the returned result has only one of the most matching data; as shown in the figure, it may be necessary to return the data of bill\_id=1003. Excuse me, can such a function be realized, how to achieve it?

---

<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:** [November 12, 2019, 3:32am UTC](https://discuss.elastic.co/t/i-would-like-to-ask-a-question-about-the-multi-value-field-taking-the-previous-one-according-to-the-matching-degree/203555/2 "2019-11-12T03:32:07Z")

</div>

Closed on November 12, 2019, 3:32am UTC

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