# How can I identify fuzzy search results with exact results and suggested results?

**URL:** <https://discuss.elastic.co/t/how-can-i-identify-fuzzy-search-results-with-exact-results-and-suggested-results/96628>\
**Category:** Elasticsearch\
**Created:** [August 10, 2017, 2:21pm UTC](https://discuss.elastic.co/t/how-can-i-identify-fuzzy-search-results-with-exact-results-and-suggested-results/96628 "2017-08-10T14:21:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vinothkumar](https://avatars.discourse-cdn.com/v4/letter/v/dbc845/32.png) [@Vinothkumar](https://discuss.elastic.co/u/Vinothkumar)\
**Post date:** [August 10, 2017, 2:21pm UTC](https://discuss.elastic.co/t/how-can-i-identify-fuzzy-search-results-with-exact-results-and-suggested-results/96628/1 "2017-08-10T14:21:33Z")

</div>

Hi Members  
Currently Elastic Search fuzzy search is giving results though it matches the query exactly or related to the query . But how can I separate results with exact matched results and suggested or related match results.

Thank you  
Vinothkumar K

---

<div class="post-metadata">

**Author:** ![talevy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/talevy/32/44896_2.png) [@talevy](https://discuss.elastic.co/u/talevy)\
**Post date:** [August 10, 2017, 11:10pm UTC](https://discuss.elastic.co/t/how-can-i-identify-fuzzy-search-results-with-exact-results-and-suggested-results/96628/2 "2017-08-10T23:10:25Z")

</div>

There is no explicit way of getting "here are your exact matches" and "here are your matches that required edits to reach a matching term" separated in your results.

You may be interested in our [`explain` flag](https://www.elastic.co/guide/en/elasticsearch/reference/5.5/search-request-explain.html) that will give you insight into why a certain hit was chosen. This will expose the matching term and its score calculation.

It is a slight pain to programmatically parse, but should give you insight into your resulting matches and which terms your initial query text was "fuzzed" into.

---

<div class="post-metadata">

**Author:** ![Vinothkumar](https://avatars.discourse-cdn.com/v4/letter/v/dbc845/32.png) [@Vinothkumar](https://discuss.elastic.co/u/Vinothkumar)\
**Post date:** [August 11, 2017, 5:34am UTC](https://discuss.elastic.co/t/how-can-i-identify-fuzzy-search-results-with-exact-results-and-suggested-results/96628/3 "2017-08-11T05:34:25Z")

</div>

Thanks @talevy that information was good. Any other suggestions please ?

---

<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:** [August 11, 2017, 8:38am UTC](https://discuss.elastic.co/t/how-can-i-identify-fuzzy-search-results-with-exact-results-and-suggested-results/96628/4 "2017-08-11T08:38:18Z")

</div>

> [@Vinothkumar](#):
>
> But how can I separate results with exact matched results and suggested or related match results.

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

---

<div class="post-metadata">

**Author:** ![Vinothkumar](https://avatars.discourse-cdn.com/v4/letter/v/dbc845/32.png) [@Vinothkumar](https://discuss.elastic.co/u/Vinothkumar)\
**Post date:** [August 21, 2017, 11:28am UTC](https://discuss.elastic.co/t/how-can-i-identify-fuzzy-search-results-with-exact-results-and-suggested-results/96628/5 "2017-08-21T11:28:27Z")

</div>

Thanks @Mark_Harwood

---

<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:** [September 18, 2017, 11:28am UTC](https://discuss.elastic.co/t/how-can-i-identify-fuzzy-search-results-with-exact-results-and-suggested-results/96628/6 "2017-09-18T11:28:33Z")

</div>

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