Best data type for a big string full of numbers


(davide) #1

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!


(system) #2

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