Hi,
I am interested with the best way of storing multiple ranges in the same field (or any other better way for storing multiple ranges).
for example,
I have an object type A, that should hold the following data:
A:
- name
- RangesFieldA: [1-2, 5, 7, 22-29]
- RangedFieldB: [2, 4-6].
then, I would like to query the objects of type A, by asking - give me all the objects of type A that range (x-y) contained in 'RangesFieldA' field.
now, I saw that there exist a range type, but I couldn't find if it's support multiple ranges?
I am currently using ES 5.6, and in the near future, we are upgrading to 6+ if it matters..
I am also interested to know, if your answer changes if A is a nested object inside another document..
Thanks