Handle .onMissingValue().use() properly for string fields in Lucene

Description

Lucene doesn't support sorting missing value as anything else than "first" or "last" for the STRING and STRING_VAL types. Currently we just let Lucene throw an exception whenever the user calls onMissingValue().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.

Activity

Show:
Fixed

Details

Assignee

Reporter

Components

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