# Distinguish full match hits from partial match hits

**URL:** <https://discuss.elastic.co/t/distinguish-full-match-hits-from-partial-match-hits/162528>\
**Category:** Elasticsearch\
**Created:** [December 31, 2018, 4:27pm UTC](https://discuss.elastic.co/t/distinguish-full-match-hits-from-partial-match-hits/162528 "2018-12-31T16:27:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![elkster](https://avatars.discourse-cdn.com/v4/letter/e/9e8a1a/32.png) [@elkster](https://discuss.elastic.co/u/elkster)\
**Post date:** [December 31, 2018, 4:27pm UTC](https://discuss.elastic.co/t/distinguish-full-match-hits-from-partial-match-hits/162528/1 "2018-12-31T16:27:37Z")

</div>

Hi,  
I'm new to Elasticsearch and been working on refining my searches. I am interested in finding out how my results can indicate full matches from partial matches i.e. in my search I could have both a single term or a phrase which searches across multiple fields with different boosts. So, in the case of a phrase, I'd like to be able to distinguish the results where the exact matches appear vs matches for all terms vs matches for some of the terms in the phrase. I'd like to be able to use this to indicate in the UI accordingly. Is there a way I can get this?

---

<div class="post-metadata">

**Author:** ![Mark\_Harwood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_harwood/32/10538_2.png) [@Mark\_Harwood](https://discuss.elastic.co/u/Mark_Harwood)\
**Post date:** [January 4, 2019, 9:32am UTC](https://discuss.elastic.co/t/distinguish-full-match-hits-from-partial-match-hits/162528/2 "2019-01-04T09:32:05Z")

</div>

Hi,  
See [named queries](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-named-queries-and-filters.html)

---

<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:** [February 1, 2019, 9:32am UTC](https://discuss.elastic.co/t/distinguish-full-match-hits-from-partial-match-hits/162528/3 "2019-02-01T09:32:16Z")

</div>

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