I have an index that contains a String array field that contains some of these possible values
["10-", "11-15", "16-18", "19-21", "22+"]. In my UI, the User can select these values and they expect to have the selected values to be presented first. For example, initially the user sees
[A, B, C, D], where only
"11-15" value in the String array field; when the user selects
"11-15", the entries will be sorted to have D first
[D, A, B, C].
My first idea was to have a replica to each situation, but it would mean managing 25 - 1 (31) indexes. What’s the best approach to have this result?