Sort results by size of array

In my index, I have some numeric id values in an array. Is it possible to
sort (or boost) docs that have more items in this array?

For example, a doc that has 10 values in the array would be at the top of
the list, while a doc with an empty array would be at the bottom.

--

why don't you index the array size into a different field and sort on that?

On Friday, October 12, 2012 5:48:25 PM UTC+2, banderon1 wrote:

In my index, I have some numeric id values in an array. Is it possible to
sort (or boost) docs that have more items in this array?

For example, a doc that has 10 values in the array would be at the top of
the list, while a doc with an empty array would be at the bottom.

--