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 Details

    • FieldUsageApplier

      public FieldUsageApplier()
  • Method Details

    • applyAll

      public static void applyAll(DataItem record, Field field, Object value)
    • apply

      public static void apply(FieldUsage fieldUsage, DataItem indexableItem, Field field, @NonNull @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 put
      field - field configuration of the according field
      value - value to be applied to the record
    • handleScoreField

      public static void handleScoreField(DataItem record, Field field, Object value)
    • joinDataValueFunction

      protected static BiFunction<? super String,? super Object,?> joinDataValueFunction(Object value)
    • joinScoreDataValue

      protected static BiFunction<? super String,? super Object,?> joinScoreDataValue(Number value)