# Custom Tokenizer Not Seeing Setting

**URL:** <https://discuss.elastic.co/t/custom-tokenizer-not-seeing-setting/44857>\
**Category:** Elasticsearch\
**Created:** [March 18, 2016, 6:53pm UTC](https://discuss.elastic.co/t/custom-tokenizer-not-seeing-setting/44857 "2016-03-18T18:53:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ralphlevan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ralphlevan/32/5580_2.png) [@ralphlevan](https://discuss.elastic.co/u/ralphlevan)\
**Post date:** [March 18, 2016, 6:53pm UTC](https://discuss.elastic.co/t/custom-tokenizer-not-seeing-setting/44857/1 "2016-03-18T18:53:02Z")

</div>

I've finally gotten my tokenizer written, installed and working. But, it doesn't seem to be getting my settings. I have an analyzer using my tokenizer defined like this:

```auto
PUT /test
{
    "settings": {
        "index": {
            "analysis": {
                "analyzer": {
                    "LCCN": {
                        "tokenizer": "LCCNTokenizer",
                        "canonical": true,
                        "filter": "lowercase"
                    }
                }
            }
        }
    }
}

```

When my TokenizerFactory gets called, all I see in the settings object is "index.version.created=2010099". IndexSettings is full of all sorts of stuff, including "index.analysis.analyzer.LCCN.canonical=true", but there's no way my code would know to look there.

Have I put my parameter in the wrong place or is there someplace else I should be looking for that configuration information?

Thanks!

---

<div class="post-metadata">

**Author:** ![ralphlevan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ralphlevan/32/5580_2.png) [@ralphlevan](https://discuss.elastic.co/u/ralphlevan)\
**Post date:** [March 21, 2016, 3:23pm UTC](https://discuss.elastic.co/t/custom-tokenizer-not-seeing-setting/44857/2 "2016-03-21T15:23:40Z")

</div>

Yes, I see now that the parameters for a tokenizer need to be bundled up with the tokenizer in a new tokenizer definition.

```auto
PUT /test
{
    "settings": {
        "index": {
            "analysis": {
                "analyzer": {
                    "LCCN": {
                        "tokenizer": "lccn",
                        "filter": "lowercase"
                    }
                },
                "tokenizer": {
                    "lccn": {
                        "type": "LCCNTokenizer",
                        "canonical": true
                    }
                }
            }
        }
    }
}

```

Thanks for you patience!

Ralph

---

<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 5, 2017, 11:06pm UTC](https://discuss.elastic.co/t/custom-tokenizer-not-seeing-setting/44857/3 "2017-07-05T23:06:33Z")

</div>


