Interface FieldSortMissingValueBehaviorStep<N>
- Type Parameters:
N
- The type of the next step (returned byFieldSortMissingValueBehaviorGenericStep.first()
, for example).
- All Superinterfaces:
FieldSortMissingValueBehaviorGenericStep<Object,
N>
public interface FieldSortMissingValueBehaviorStep<N>
extends FieldSortMissingValueBehaviorGenericStep<Object,N>
The step in a sort definition where the behavior on missing values can be set.
- Author:
- Emmanuel Bernard emmanuel@hibernate.org
-
Method Summary
Modifier and TypeMethodDescriptiondefault N
When documents are missing a value on the sort field, use the given value instead.default N
use
(Object value, ValueConvert convert) Deprecated.use
(Object value, ValueModel valueModel) When documents are missing a value on the sort field, use the given value instead.Methods inherited from interface org.hibernate.search.engine.search.sort.dsl.FieldSortMissingValueBehaviorGenericStep
first, highest, last, lowest
-
Method Details
-
use
When documents are missing a value on the sort field, use the given value instead.This method will apply DSL converters to
value
before Hibernate Search attempts to interpret it as a field value. SeeValueModel.MAPPING
.- Specified by:
use
in interfaceFieldSortMissingValueBehaviorGenericStep<Object,
N> - Parameters:
value
- The value to use as a default when a document is missing a value on the sort field.- Returns:
- The next step.
- Throws:
SearchException
- If the field is not numeric.
-
use
Deprecated.Useuse(Object, ValueModel)
instead.When documents are missing a value on the sort field, use the given value instead.- Parameters:
value
- The value to use as a default when a document is missing a value on the sort field.convert
- Controls how thevalue
should be converted before Hibernate Search attempts to interpret it as a field value. SeeValueConvert
.- Returns:
- The next step.
- Throws:
SearchException
- If the field is not numeric.
-
use
When documents are missing a value on the sort field, use the given value instead.- Parameters:
value
- The value to use as a default when a document is missing a value on the sort field.valueModel
- The model value, determines how thevalue
should be converted before Hibernate Search attempts to interpret it as a field value. SeeValueModel
.- Returns:
- The next step.
- Throws:
SearchException
- If the field is not numeric.
-
use(Object, ValueModel)
instead.