Files
hibernate-demo/docs/output/25-sortable-generic-field.txt
T

5 lines
393 B
Plaintext

$ mvn -o -B test -Dtest=HibernateSearchTest#sortableGenericField_ordersByReleaseYear
(trimmed to the test's own RESULT line)
RESULT[search-sortable-generic-field]: sort(f -> f.field("releaseYear").desc()) over the 3 Sgf-prefixed movies -- years in the order returned: [1993, 1982, 1975] -- @GenericField(sortable = Sortable.YES) is what makes this sort possible; the default is NOT sortable.