# Want a fault tolerant search but got to much results

**URL:** <https://discuss.elastic.co/t/want-a-fault-tolerant-search-but-got-to-much-results/276311>\
**Category:** Elasticsearch\
**Created:** [June 17, 2021, 8:03pm UTC](https://discuss.elastic.co/t/want-a-fault-tolerant-search-but-got-to-much-results/276311 "2021-06-17T20:03:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joni94](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joni94/32/81145_2.png) [@Joni94](https://discuss.elastic.co/u/Joni94)\
**Post date:** [June 17, 2021, 8:03pm UTC](https://discuss.elastic.co/t/want-a-fault-tolerant-search-but-got-to-much-results/276311/1 "2021-06-17T20:03:55Z")

</div>

Hello,

I am trying to set up an error-tolerant search and have created the field "name" as "text" in my index and would like to search for it.

I expect to search for exactly what I entered but normalise the string before.

I have found an example online of how I would like it.

[https://bit.ly/3zwiq1k](https://bit.ly/3zwiq1k)

Here I searched for "Strick Strick Hurra Die Küstenwolle" and got results like "RAILTRAILER STRICK" or just "STRICK".

The website linked above also has the corresponding words in its database. I have created them exactly like this in my system for testing purposes.

My query is as follows:

```auto
GET /myindex/_search/
{
  "query": {
    "match": {
      "name": { "Strick Strick Hurra Die Küstenwolle" }
    }
  }
}

```

How do I manage to search error-tolerantly but delete matches that are much shorter and hardly have a match?

I have tried to filter by the score, but it is sometimes very high when there is hardly any match.

I would be very pleased to receive help!

Thank you!

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [June 21, 2021, 9:04am UTC](https://discuss.elastic.co/t/want-a-fault-tolerant-search-but-got-to-much-results/276311/2 "2021-06-21T09:04:29Z")

</div>

by default this is an `OR` combined query, meaning a single term is required match.

Take a look at [minimum should match](https://www.elastic.co/guide/en/elasticsearch/reference/7.13/query-dsl-minimum-should-match.html) and at the ability to use [should](https://www.elastic.co/guide/en/elasticsearch/reference/7.13/query-dsl-bool-query.html) clause in a bool query to boost a complete match.

hope this helps!

---

<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:** [July 19, 2021, 9:05am UTC](https://discuss.elastic.co/t/want-a-fault-tolerant-search-but-got-to-much-results/276311/3 "2021-07-19T09:05:30Z")

</div>

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