# Exact document match

**URL:** <https://discuss.elastic.co/t/exact-document-match/112307>\
**Category:** Elasticsearch\
**Created:** [December 18, 2017, 8:44pm UTC](https://discuss.elastic.co/t/exact-document-match/112307 "2017-12-18T20:44:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ayushmat316](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ayushmat316/32/25757_2.png) [@ayushmat316](https://discuss.elastic.co/u/ayushmat316)\
**Post date:** [December 18, 2017, 8:44pm UTC](https://discuss.elastic.co/t/exact-document-match/112307/1 "2017-12-18T20:44:42Z")

</div>

Is there a query I can use to match a document to a set of documents in an index on a set of fields, so that the highest score is for an exact match, and the score reduces for any fuzzy matches?

---

<div class="post-metadata">

**Author:** ![Mike.Barretta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mike.barretta/32/16688_2.png) [@Mike.Barretta](https://discuss.elastic.co/u/Mike.Barretta)\
**Post date:** [December 20, 2017, 5:13pm UTC](https://discuss.elastic.co/t/exact-document-match/112307/2 "2017-12-20T17:13:05Z")

</div>

@ayushmat316 I think the [More like this query](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-mlt-query.html) is what you are describing. Given a seed document (or "artificial" documents), you can search for other documents that are similar along a specified number of fields.

---

<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 17, 2018, 5:13pm UTC](https://discuss.elastic.co/t/exact-document-match/112307/3 "2018-01-17T17:13:15Z")

</div>

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