Package de.cxp.ocs.conf
Class FieldUsageApplier
java.lang.Object
de.cxp.ocs.conf.FieldUsageApplier
Enum describing the usage of an field that will be indexed.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
apply
(FieldUsage fieldUsage, DataItem indexableItem, Field field, @NonNull Object value) static void
static void
handleFacetField
(DataItem record, Field field, Object value) If the field is set to number type, the value will be indexed as a numeric facet.static void
handleScoreField
(DataItem record, Field field, Object value) protected static BiFunction
<? super String, ? super Object, ?> joinDataValueFunction
(Object value) protected static BiFunction
<? super String, ? super Object, ?> joinScoreDataValue
(Number value)
-
Constructor Details
-
FieldUsageApplier
public FieldUsageApplier()
-
-
Method Details
-
applyAll
-
apply
public static void apply(FieldUsage fieldUsage, DataItem indexableItem, Field field, @NonNull @NonNull Object value) -
handleFacetField
If the field is set to number type, the value will be indexed as a numeric facet. Otherwise it will be indexed as String, even if the string contains a number.
- Parameters:
record
- where the facet value should be putfield
- field configuration of the according fieldvalue
- value to be applied to the record
-
handleScoreField
-
joinDataValueFunction
-
joinScoreDataValue
-