Create a proper API for sorting definitions

Description

Especially useful for the DSL, but not exclusively as we apply sorting as an independent component from the query definition.

Important to possibly decouple from the Lucene engine in local mode, and also to abstract the user application code from the Lucene API changes.

However while abstraction has some benefits, let's make sure that no functionality is taken away from people having deep Lucene understanding.

Environment

None

Status

Assignee

Yoann Rodière

Reporter

Sanne Grinovero

Labels

None

Suitable for new contributors

None

Feedback Requested

None

Components

Fix versions

Priority

Major