What is the mapping for array of arrays

(pungent) #1

I am planning to store data for a field in this way:

"pair_age": [
   [12, 19], [17,20], [34,35]

So in mapping how to set it:

"pair_age":  { "type":  "????" }

What should I set the value of ???? above?

(Christoph) #2


you cannot really store arrays of arrays directly and then query for a specific pair, due to the way this data is stored internally in Lucene. The documentation about Array datatype and Nested datatype explain this in more detail and also provide an alternative, depending on how you need to access your data later.

(pungent) #3

Thank you got it

(system) #4