# Problem in multi match search

**URL:** <https://discuss.elastic.co/t/problem-in-multi-match-search/316963>\
**Category:** Elasticsearch\
**Created:** [October 19, 2022, 7:47am UTC](https://discuss.elastic.co/t/problem-in-multi-match-search/316963 "2022-10-19T07:47:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fakeknox](https://avatars.discourse-cdn.com/v4/letter/f/b5e925/32.png) [@Fakeknox](https://discuss.elastic.co/u/Fakeknox)\
**Post date:** [October 19, 2022, 7:47am UTC](https://discuss.elastic.co/t/problem-in-multi-match-search/316963/1 "2022-10-19T07:47:13Z")

</div>

hello i have 6 different field that i want to search in all of them . im using edge gram analyzer for search and using multi match query and text come from front.  
my sample code is :

```auto
esClient.search({
            index: 'equipments',
            size: 15,
            from: 0,
            query: {
                bool:{
                    must:{
                        multi_match: {
                            fields: [
                                'model',
                                'title^6',
                                'category^5',
                                'brand^3',
                                'attribute.keyword',
                                // 'attribute^2',
                                'description^4'
                            ],
                            query: text,
                            type:'most_fields',
                        },
                    }
                }
        })

```

when i search excav it returns every equipments category that start with excav (excavator) and when i search for excav hit it returns all excav and hit that can find (excavator hitachi) but my problem is when i search excav hi it returns a document that doesnt have excav in it

---

<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:** [November 16, 2022, 7:47am UTC](https://discuss.elastic.co/t/problem-in-multi-match-search/316963/2 "2022-11-16T07:47:20Z")

</div>

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