Fixed
Details
Assignee
Fabio Massimo ErcoliFabio Massimo ErcoliReporter
Yoann RodièreYoann RodièreComponents
Fix versions
Priority
Major
Details
Details
Assignee
Fabio Massimo Ercoli
Fabio Massimo ErcoliReporter
Yoann Rodière
Yoann RodièreComponents
Fix versions
Priority
Created August 3, 2018 at 12:44 PM
Updated June 21, 2019 at 12:12 PM
Resolved June 5, 2019 at 3:44 PM
Lucene doesn't support sorting missing value as anything else than "first" or "last" for the
STRING
andSTRING_VAL
types. Currently we just let Lucene throw an exception whenever the user callsonMissingValue().use( ... )
on such type.We should at the very least throw our own exception like we used to in Search 5 (see org.hibernate.search.query.dsl.sort.impl.SortFieldStates#processMissingValue).
Ideally we should support it instead of failing. It would require implementing our own sorting mechanism for strings, though; not sure it's worth it.