Package de.cxp.ocs.conf
Class FieldUsageApplier
- java.lang.Object
-
- de.cxp.ocs.conf.FieldUsageApplier
-
public class FieldUsageApplier extends Object
Enum describing the usage of an field that will be indexed.
-
-
Constructor Summary
Constructors Constructor Description FieldUsageApplier()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidapply(FieldUsage fieldUsage, DataItem indexableItem, Field field, Object value)static voidapplyAll(DataItem record, Field field, Object value)static voidhandleFacetField(DataItem record, Field field, Object value)If the field is set to number type, the value will be indexed as a numeric facet.static voidhandleResultField(DataItem record, Field field, Object value)static voidhandleScoreField(DataItem record, Field field, Object value)static voidhandleSearchField(DataItem record, Field field, Object value)static voidhandleSortField(DataItem record, Field field, Object value)protected static BiFunction<? super String,? super Object,? extends Object>joinDataValueFunction(Object value)protected static BiFunction<? super String,? super Object,? extends Object>joinScoreDataValue(Number value)
-
-
-
Method Detail
-
apply
public static void apply(FieldUsage fieldUsage, DataItem indexableItem, Field field, @NonNull Object value)
-
handleFacetField
public 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. 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
-
joinDataValueFunction
protected static BiFunction<? super String,? super Object,? extends Object> joinDataValueFunction(Object value)
-
joinScoreDataValue
protected static BiFunction<? super String,? super Object,? extends Object> joinScoreDataValue(Number value)
-
-