Class FieldUsageApplier


  • public class FieldUsageApplier
    extends Object
    Enum describing the usage of an field that will be indexed.
    • Constructor Detail

      • FieldUsageApplier

        public FieldUsageApplier()
    • Method Detail

      • handleSearchField

        public static void handleSearchField​(DataItem record,
                                             Field field,
                                             Object value)
      • handleResultField

        public static void handleResultField​(DataItem record,
                                             Field field,
                                             Object value)
      • handleSortField

        public static void handleSortField​(DataItem record,
                                           Field field,
                                           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)