# Multiple tokenizers inside one Custom Analyser in Elasticsearch

**URL:** <https://discuss.elastic.co/t/multiple-tokenizers-inside-one-custom-analyser-in-elasticsearch/150297>\
**Category:** Elasticsearch\
**Created:** [September 28, 2018, 6:37am UTC](https://discuss.elastic.co/t/multiple-tokenizers-inside-one-custom-analyser-in-elasticsearch/150297 "2018-09-28T06:37:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pranav24](https://avatars.discourse-cdn.com/v4/letter/p/b19c9b/32.png) [@pranav24](https://discuss.elastic.co/u/pranav24)\
**Post date:** [September 28, 2018, 6:37am UTC](https://discuss.elastic.co/t/multiple-tokenizers-inside-one-custom-analyser-in-elasticsearch/150297/1 "2018-09-28T06:37:15Z")

</div>

I am using Custom NGRAM Analyzer which has a ngram tokenizer. I have also used lowercase filter. The query is working fine for searches without characters. But when I am searching for certain symbols, it fails. Since I have used lower case tokenizers, Elasticsearch doesn't analyse symbols. I know whitespace tokenizer can help me solve the issue. How can I use two tokenizers in a single analyzer?Below is the mapping:

```
    {
      "settings": {
        "analysis": {
          "analyzer": {
            "my_analyzer": {
              "tokenizer": "my_tokenizer",
              "filter": "lowercase"
            }
          },
          "tokenizer": {
            "my_tokenizer": {
              "type": "ngram",
              "min_gram": 3,
              "max_gram": 3,
              "token_chars": [
                "letter",
                "digit"
              ]
            }
          }
        }
      },
      "mappings": {
        "_doc": {
          "properties": {
            "title": {
              "type": "text",
              "analyzer": "my_analyzer"
            }
          }
        }
      }
    }

```

Is there a way I could solve this issue?

---

<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:** [October 26, 2018, 6:37am UTC](https://discuss.elastic.co/t/multiple-tokenizers-inside-one-custom-analyser-in-elasticsearch/150297/2 "2018-10-26T06:37:24Z")

</div>

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