# Which analyzer strategy use

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

<div class="post-metadata">

**Author:** ![Dan\_Titan](https://avatars.discourse-cdn.com/v4/letter/d/46a35a/32.png) [@Dan\_Titan](https://discuss.elastic.co/u/Dan_Titan)\
**Post date:** [April 17, 2015, 10:49am UTC](https://discuss.elastic.co/t/which-analyzer-strategy-use/23290/1 "2015-04-17T10:49:45Z")

</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?

Many thanks for considering my request.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/4fbdc119-6135-4af7-a5db-b94da1aa9181%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/4fbdc119-6135-4af7-a5db-b94da1aa9181%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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/23290/2 "2017-07-06T00:19:08Z")

</div>


