In HSEARCH-1872, a sort DSL is being introduced. This DSL will have to be extended with elements that were excluded from the initial work:
* a {{withComparator()}} method for building a sort that will use a java.util.Comparator * a {{treatMultiValuedAs(mode)}} method for instructions about how multi-valued fields should be sorted. * 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) * a {{onMissingValue()}} method for distance sort (at least first/last as for field sorts, or even substitue value if possible) * a {{withComputeMethod()}} method for distance sort
See HSEARCH-1872 for hints on use cases (they might not all be defined). |
|