# Partial word search with free text search string in multiple fields

**URL:** <https://discuss.elastic.co/t/partial-word-search-with-free-text-search-string-in-multiple-fields/318311>\
**Category:** Elasticsearch\
**Created:** [November 7, 2022, 10:02am UTC](https://discuss.elastic.co/t/partial-word-search-with-free-text-search-string-in-multiple-fields/318311 "2022-11-07T10:02:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sagar\_Viradiya](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sagar_viradiya/32/113024_2.png) [@Sagar\_Viradiya](https://discuss.elastic.co/u/Sagar_Viradiya)\
**Post date:** [November 7, 2022, 10:02am UTC](https://discuss.elastic.co/t/partial-word-search-with-free-text-search-string-in-multiple-fields/318311/1 "2022-11-07T10:02:13Z")

</div>

Currently I am using multi\_match as below to search partial text string

```json
{
    "query": {
        "multi_match": {
            "fields": [
                "model",
                "make",
                "year.keyword"
            ],
            "operator": "and",
            "query": "2015 Toyota Corolla",
            "type": "cross_fields"
        }
    }
}

```

It will search vehicles which contains year=2015, make=Toyota, model=Corolla successfully

But now we have requirement to search with partial word also like

```auto
{
    "query": {
        "multi_match": {
            "fields": [
                "model",
                "make",
                "year.keyword"
            ],
            "operator": "and",
            "query": "2015 Toy Corolla",
            "type": "cross_fields"
        }
    }
}

```

Should also search vehicles which contains year=2015, make=Toyota, model=Corolla.  
I checked multi match it does not support wild cards other wise I could have used it.

Can any body help me to solve out with existing query.

---

<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:** [December 5, 2022, 10:02am UTC](https://discuss.elastic.co/t/partial-word-search-with-free-text-search-string-in-multiple-fields/318311/2 "2022-12-05T10:02:50Z")

</div>

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