Enum DocumentTypeField.DataType

    • Enum Constant Detail

      • FLAT_OBJECT

        public static final DocumentTypeField.DataType FLAT_OBJECT
        Flat object data type. A field of this type allows inner fields to be indexed and searched. This kind of field does not guarantee inner field values isolation on search. Eg.:
        "fullName": [ { "firstName": "John", "lastName": "Smith" }, { "firstName": "Jane", "lastName": "Doe" }, ] If a search for firstName:Jane AND lastName:Smith is performed, the document that has this entry will be found. Maps to Map java type.
        Since:
        8.1.0
        See Also:
        NESTED_OBJECT
      • NESTED_OBJECT

        public static final DocumentTypeField.DataType NESTED_OBJECT
        Nested object data type.

        A field of this type allows inner fields to be indexed and searched. This kind of field allow searches isolating its individual values. Eg.:

        "fullName": [ { "firstName": "John", "lastName": "Smith" }, { "firstName": "Jane", "lastName": "Doe" }, ]

        If a search for firstName:Jane AND lastName:Smith is performed, the document above will be in the search results. But if the fullName field is a nested object, the NestedObjectFilter can be used to wrap that search filter, and in this case the document above will not be in the search results since the field values filtered are not present in a single nested object value.

        Maps to Map java type.

        Since:
        8.1.0
        See Also:
        FLAT_OBJECT
      • GEO_POINT

        public static final DocumentTypeField.DataType GEO_POINT
        Geo point data type. This data type is a complex object that contains two components: lat (which is the latitude of the coordinate) and lon (which is the longitude of the coordinate).

        Maps to GeoPoint java type.

        Since:
        9.0.0
    • Method Detail

      • values

        public static DocumentTypeField.DataType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (DocumentTypeField.DataType c : DocumentTypeField.DataType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static DocumentTypeField.DataType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null