# I want best matching result comes first with fuzziness: AUTO on

**URL:** <https://discuss.elastic.co/t/i-want-best-matching-result-comes-first-with-fuzziness-auto-on/311085>\
**Category:** Elasticsearch\
**Created:** [August 1, 2022, 7:05am UTC](https://discuss.elastic.co/t/i-want-best-matching-result-comes-first-with-fuzziness-auto-on/311085 "2022-08-01T07:05:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rakhshunda\_Noorein\_J](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rakhshunda_noorein_j/32/99407_2.png) [@Rakhshunda\_Noorein\_J](https://discuss.elastic.co/u/Rakhshunda_Noorein_J)\
**Post date:** [August 1, 2022, 7:05am UTC](https://discuss.elastic.co/t/i-want-best-matching-result-comes-first-with-fuzziness-auto-on/311085/1 "2022-08-01T07:05:36Z")

</div>

```auto
{
   
    "size":1000,
    "query":{
        "multi_match":{
            "query":"monsoon",
            "type": "best_fields",
            "fields":["EntityType^4", "Title","Title._2gram","Title._3gram","Title._index_prefix",
                          "Tags","Tags._2gram","Tags._3gram","Tags._index_prefix"
                       ],
                         "operator" : "and",
                         "fuzziness" : "AUTO"

            }
        }
        }

```

I have used multi-match query with type as best-fields, operator "and" and fuzziness auto.  
But when I am searching lets supposes vinay, they vinay is coming at the bottom and vinayaka, vinny, vijay is coming on top. I want the best match comes first then the similar words. as I am using fuzziness bool\_prefix type will not be working. Is there a way I can get my desired output???

---

<div class="post-metadata">

**Author:** ![RabBit\_BR](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rabbit_br/32/82261_2.png) [@RabBit\_BR](https://discuss.elastic.co/u/RabBit_BR)\
**Post date:** [August 1, 2022, 12:52pm UTC](https://discuss.elastic.co/t/i-want-best-matching-result-comes-first-with-fuzziness-auto-on/311085/2 "2022-08-01T12:52:50Z")

</div>

Hi @Rakhshunda_Noorein_J  
Could you provide some documents for simulation?

---

<div class="post-metadata">

**Author:** ![Rakhshunda\_Noorein\_J](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rakhshunda_noorein_j/32/99407_2.png) [@Rakhshunda\_Noorein\_J](https://discuss.elastic.co/u/Rakhshunda_Noorein_J)\
**Post date:** [August 1, 2022, 1:33pm UTC](https://discuss.elastic.co/t/i-want-best-matching-result-comes-first-with-fuzziness-auto-on/311085/3 "2022-08-01T13:33:06Z")

</div>

```auto

                {
                    "EntityType": "e1",
                     "Name": "Vinay Cements Ltd."
                },
            
            {
                    "EntityType": "e1",
                    "Name": "Vijay Solvex Ltd."
                },
            {
                    "EntityType": "e1",
                    "Name": "Vijay Textiles Ltd."
                },
             {
                    "EntityType": "e2",
                    "Name": "Vinny Overseas Ltd."
                },
            {
                    "EntityType": "e2",
                    "Name": "Vinay JainGÇÖs Training Forum Pvt. Ltd."
                },
            {
                    "EntityType": "e2",
                    "Name": "Vijay Shanthi Builders Ltd."
                },
{
                    "EntityType": "e3",
                    "Name": "Vijay Kedia & Associates"
                },
            {
                    "EntityType": "e3",
                    "Name": "Vijay Hemant Finance & Estates Ltd."
                },
            
            {
                    "EntityType": "F1",
                    "Description": "Love applying technology to use cases. Innovation and simplicity is the mantra!",
                      "Title": "Vinay Ram",
                        "Tags": "@vinayram",
                                   }

```

for example in these documents vijay, vinny etc are coming and vinay is also coming but not at the top

---

<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:** [August 29, 2022, 1:33pm UTC](https://discuss.elastic.co/t/i-want-best-matching-result-comes-first-with-fuzziness-auto-on/311085/4 "2022-08-29T13:33:58Z")

</div>

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