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?
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?
Hi,
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.
Thank you got it
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.