Is it possible to sort based on element existing in multi value field?
Example:
a) document with "111"
put test/test/1
{
"bit_position" : [
1,
2,
3
]
}
b) document with 010
put test/test/2
{
"bit_position": [
2
]
}
Sorting based on "bit_position" = 3
should return document a and then b.
I read about this being possible as nested field but can't find any information about it when bit_position
is not nested.
I found this question: Sorting by value in multivalued field in elasticsearch but it has not been answered.
Thank you