# Which analyzer strategy use

**URL:** <https://discuss.elastic.co/t/which-analyzer-strategy-use/23287>\
**Category:** Elasticsearch\
**Created:** [April 17, 2015, 8:34am UTC](https://discuss.elastic.co/t/which-analyzer-strategy-use/23287 "2015-04-17T08:34:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lechuman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lechuman/32/10178_2.png) [@lechuman](https://discuss.elastic.co/u/lechuman)\
**Post date:** [April 17, 2015, 8:34am UTC](https://discuss.elastic.co/t/which-analyzer-strategy-use/23287/1 "2015-04-17T08:34:18Z")

</div>

Hello elasticUs, I want to know which is the best route to index a text that contains codes (for example 1/56DTH) and other normal text but without losing benefits of analyzed text.  
For example I want index the text:  
"Every night I need to restart my robots 1/56DTH"

If I use an standard english analyzer (/\_analyze?analyzer=english)  
everi, night, i, need, restart, my, robot, 1, 56dth

My target is get something like:  
everi, night, i, need, restart, my, robot, 1/56dth

I think the key is create a new analyzer with a Pattern Tokenizer capable to detect 1/56DTH like a term. what do you think? I go in the correct way?

---

<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 6, 2017, 12:19am UTC](https://discuss.elastic.co/t/which-analyzer-strategy-use/23287/2 "2017-07-06T00:19:11Z")

</div>


