We're updating the issue view to help you get more done. 

Sorts on multi-valued fields

Description

In 5, we allow multi-valued sort fields at indexing time, because we don’t know those fields will be multi-valued. But we don’t have any way to sort on such fields.

We need to either:

  • Inspect metadata at query time to prevent sorts on multi-valued fields and throw an explicit exception.

  • OR provide ways to sort on multi-valued fields: allow to specify “sort on the max for each document” or similar.

For reference:

Environment

None

Status

Assignee

Unassigned

Reporter

Yoann Rodière

Labels

None

Suitable for new contributors

None

Pull Request

None

Feedback Requested

None

Fix versions

Priority

Major