# Edge Ngram Analzer with tokenchars "letter" "digit" and "-"

**URL:** <https://discuss.elastic.co/t/edge-ngram-analzer-with-tokenchars-letter-digit-and/145043>\
**Category:** Elasticsearch\
**Created:** [August 19, 2018, 9:49am UTC](https://discuss.elastic.co/t/edge-ngram-analzer-with-tokenchars-letter-digit-and/145043 "2018-08-19T09:49:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![borstelmahlsdorf](https://avatars.discourse-cdn.com/v4/letter/b/a8b319/32.png) [@borstelmahlsdorf](https://discuss.elastic.co/u/borstelmahlsdorf)\
**Post date:** [August 19, 2018, 9:49am UTC](https://discuss.elastic.co/t/edge-ngram-analzer-with-tokenchars-letter-digit-and/145043/1 "2018-08-19T09:49:26Z")

</div>

i try to create a edge-ngram analyzer for "Letter" "digit" and "-" and found no solution

here for the Documentation  
"settings": {  
"analysis": {  
"analyzer": {  
"my\_analyzer": {  
"tokenizer": "my\_tokenizer"  
}  
},  
"tokenizer": {  
"my\_tokenizer": {  
"type": "edge\_ngram",  
"min\_gram": 2,  
"max\_gram": 10,  
"token\_chars": [  
"letter", \<-- works  
"digit" ,\<-- works  
"symbol" does not work ##### How to create a token char "-"  
]  
}  
}  
}  
}

Any suggestions. Thanks a lot in advance

there seems to be a discussion on

> <https://github.com/elastic/elasticsearch/issues/25894>

---

<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:** [September 16, 2018, 9:49am UTC](https://discuss.elastic.co/t/edge-ngram-analzer-with-tokenchars-letter-digit-and/145043/2 "2018-09-16T09:49:28Z")

</div>

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