Fixed
Details
Assignee
Yoann RodièreYoann RodièreReporter
Yoann RodièreYoann RodièreFix versions
Priority
Major
Details
Details
Assignee
Yoann Rodière
Yoann RodièreReporter
Yoann Rodière
Yoann RodièreFix versions
Priority
Created February 16, 2017 at 9:04 AM
Updated February 22, 2017 at 9:22 AM
Resolved February 21, 2017 at 5:43 PM
Currently the API doc tells user to use
byField(String, SortField.Type)
. But in the particular case ofMetadataProvidingFieldBridge
, we may have enough information to know what type of sort to use, or at least to guess a decent default.The idea would be, in
org.hibernate.search.query.dsl.sort.impl.SortFieldStates.getCurrentSortFieldTypeFromMetamodel()
, to usetypeMetadata.getBridgeDefinedFieldMetadataFor( sortField.getAbsoluteName() )
to retrieve the metadata of the bridge-defined field, and use this metadata to guess the sort type.