# Best data type for a big string full of numbers

**URL:** <https://discuss.elastic.co/t/best-data-type-for-a-big-string-full-of-numbers/138741>\
**Category:** Elasticsearch\
**Created:** [July 5, 2018, 2:09pm UTC](https://discuss.elastic.co/t/best-data-type-for-a-big-string-full-of-numbers/138741 "2018-07-05T14:09:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidediak](https://avatars.discourse-cdn.com/v4/letter/d/edb3f5/32.png) [@davidediak](https://discuss.elastic.co/u/davidediak)\
**Post date:** [July 5, 2018, 2:09pm UTC](https://discuss.elastic.co/t/best-data-type-for-a-big-string-full-of-numbers/138741/1 "2018-07-05T14:09:54Z")

</div>

Hi guys,  
my docs have a field (called "digits") which is a big string full of numbers separated by space e.g. digits:"123 321 5236243 ...". Each doc have 500k of these digits. I want these searchable, with an exact match, therefore indexed; right now i put them in ES as text type with the white space analyzer.  
Would it be better to treat the digits as an array of string/integer ? or change the analyzer or dont even analyze them ("no\_analyzer")?  
My goal is to have as fast as possible search response time, specifying one of these digits.  
Thanks!

---

<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:** [August 2, 2018, 2:13pm UTC](https://discuss.elastic.co/t/best-data-type-for-a-big-string-full-of-numbers/138741/2 "2018-08-02T14:13:50Z")

</div>

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