Class StringFieldMapping

  • All Implemented Interfaces:
    FieldMapping

    public class StringFieldMapping
    extends AbstractFieldMapping
    Field mapping for keywords or non analyzed text.
    Since:
    8.6
    • Method Detail

      • createField

        public FieldDescriptor createField​(String value)
        Create a field for the current mapping with the given value
        Parameters:
        value -
        Returns:
        the newly created field
      • accept

        public <T> T accept​(FieldMappingVisitor<T> visitor)
        Description copied from interface: FieldMapping
        Applies the supplied visitor to this field mapping with its respective callback.
        Parameters:
        visitor - The visitor to dispatch
        Returns:
        The value that is returned by the supplied visitor
      • isAsLowercase

        public boolean isAsLowercase()
        Indicate whether this field is a lowercase

        Only used by OpenSearch when handle LowercaseFieldSort

        Returns:
        whether this field is a lowercase
        Since:
        8.8
      • isWithLowercase

        public boolean isWithLowercase()
        Indicate whether this field is a lowercase

        Only used by OpenSearch when handle LowercaseFieldSort

        Returns:
        whether this field is a lowercase
        Since:
        8.8