Closing because all the features mentioned here are either already implemented in Search 6, or have a dedicated ticket:
- a withComparator() method for building a sort that will use a java.util.Comparator => Can be achieved through fromLuceneSortField().
- a treatMultiValuedAs(mode) method for instructions about how multi-valued fields should be sorted. => added mode() in HSEARCH-3103 Resolved
- a byNative() method for injecting implementation-dependent sorts inside a DSL-built sort (such as a JSON string for ElasticSearch, or a SortField for a local Lucene index) => Can be achieved through fromJson()/fromLuceneSortField().
- a onMissingValue() method for distance sort (at least first/last as for field sorts, or even substitue value if possible) => See HSEARCH-3863 Open
- a withComputeMethod() method for distance sort => Won't fix
- a byDistanceFromSpatialQuery(Query) method for distance sort => Won't fix
|