# Searching numeric keyword in text string

**URL:** <https://discuss.elastic.co/t/searching-numeric-keyword-in-text-string/145668>\
**Category:** Elasticsearch\
**Created:** [August 23, 2018, 6:53am UTC](https://discuss.elastic.co/t/searching-numeric-keyword-in-text-string/145668 "2018-08-23T06:53:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Neha\_Gupta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/neha_gupta/32/34737_2.png) [@Neha\_Gupta](https://discuss.elastic.co/u/Neha_Gupta)\
**Post date:** [August 23, 2018, 6:53am UTC](https://discuss.elastic.co/t/searching-numeric-keyword-in-text-string/145668/1 "2018-08-23T06:53:22Z")

</div>

Hi,

Am trying to search on numeric or special character on text string, but its not able to search.

I have created tokenizer something like below, when i analyze tokens i can see numeric or special character tokens as well. But search on working on it:

Example my string - "Hi this is some test message to test number 50KG of something."  
So if i search 50KG it dont works.

"tokenizer": {  
"product\_ngram\_tokenizer": {  
"type": "ngram",  
"min\_gram": 3,  
"max\_gram": 20,  
"token\_chars": []  
}  
}

Can you please help what could be the issue.

---

<div class="post-metadata">

**Author:** ![rjernst](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rjernst/32/6363_2.png) [@rjernst](https://discuss.elastic.co/u/rjernst)\
**Post date:** [August 24, 2018, 4:39pm UTC](https://discuss.elastic.co/t/searching-numeric-keyword-in-text-string/145668/2 "2018-08-24T16:39:25Z")

</div>

Can you please show what query you are running?

Also, please format your code using `</>` icon as explained in [this guide](https://discuss.elastic.co/t/about-the-elasticsearch-category/21). It helps make the json more readable.

---

<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 21, 2018, 4:39pm UTC](https://discuss.elastic.co/t/searching-numeric-keyword-in-text-string/145668/3 "2018-09-21T16:39:31Z")

</div>

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