# There is a way to use multiple analyzers?

**URL:** <https://discuss.elastic.co/t/there-is-a-way-to-use-multiple-analyzers/275472>\
**Category:** Elasticsearch\
**Created:** [June 9, 2021, 3:56pm UTC](https://discuss.elastic.co/t/there-is-a-way-to-use-multiple-analyzers/275472 "2021-06-09T15:56:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sebastian\_Marroquin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sebastian_marroquin/32/90069_2.png) [@Sebastian\_Marroquin](https://discuss.elastic.co/u/Sebastian_Marroquin)\
**Post date:** [June 9, 2021, 3:56pm UTC](https://discuss.elastic.co/t/there-is-a-way-to-use-multiple-analyzers/275472/1 "2021-06-09T15:56:47Z")

</div>

Hi everyone, I'm starting my way to learn and use elasticsearch alongside the "MEN" stack. And I was wondering if there is a way to use multiple parsers, I show you the section of code that I want to use:

```auto
query = {
    "bool": {
        "must": [
            {
                "multi_match": {
                    "query": strQuery + "~",
                    "fields": ["strDescription^10", "strCategory^30", "strSubCategory^40", "strVendorPart"],
                    "minimum_should_match": "95%",
                    // This part is where I want to add another parser
                    "analyzer" : "elastic_synonym_analyzer"
                }
            }
        ],
    }
};

```

The index I'm working with is the following:

```auto
{
    "settings" : {
        "analysis" : {
            "analyzer" : {
                "standard_asciifolding": {
                    "tokenizer": "standard",
                    "filter": ["my_ascii_folding"]
                },
                "elastic_synonym_analyzer" : {
                    "tokenizer" : "standard",
                    "filter" : [
                        "my_synonym"
                    ]
                }
            },
            "filter" : {
                "my_synonym" : {
                    "type" : "synonym",
                    "synonyms" : []
                },
                "my_ascii_folding": {
                    "type": "asciifolding",
                    "preserve_original": true
                }
            }
        }
    }
}

```

I hope you can help me.

P.S. The version I am using of elasticsearch is 6.2.4 (I know it should increase but first I want to know how to solve this problem)

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [June 9, 2021, 4:34pm UTC](https://discuss.elastic.co/t/there-is-a-way-to-use-multiple-analyzers/275472/2 "2021-06-09T16:34:11Z")

</div>

You should create new sub fields for the same existing fields which are using another analyzer.

See

> **[fields | Elasticsearch Guide \[6.8\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/6.8/multi-fields.html#_multi_fields_with_multiple_analyzers)**

---

<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 7, 2021, 4:34pm UTC](https://discuss.elastic.co/t/there-is-a-way-to-use-multiple-analyzers/275472/3 "2021-07-07T16:34:16Z")

</div>

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