Class FieldCapabilities

    • Constructor Detail

      • FieldCapabilities

        public FieldCapabilities​(java.lang.String name,
                                 java.lang.String type,
                                 boolean isSearchable,
                                 boolean isAggregatable)
        Constructor
        Parameters:
        name - The name of the field.
        type - The type associated with the field.
        isSearchable - Whether this field is indexed for search.
        isAggregatable - Whether this field can be aggregated on.
      • FieldCapabilities

        public FieldCapabilities​(java.lang.String name,
                                 java.lang.String type,
                                 boolean isSearchable,
                                 boolean isAggregatable,
                                 java.lang.String[] indices,
                                 java.lang.String[] nonSearchableIndices,
                                 java.lang.String[] nonAggregatableIndices)
        Constructor
        Parameters:
        name - The name of the field
        type - The type associated with the field.
        isSearchable - Whether this field is indexed for search.
        isAggregatable - Whether this field can be aggregated on.
        indices - The list of indices where this field name is defined as type, or null if all indices have the same type for the field.
        nonSearchableIndices - The list of indices where this field is not searchable, or null if the field is searchable in all indices.
        nonAggregatableIndices - The list of indices where this field is not aggregatable, or null if the field is aggregatable in all indices.
      • FieldCapabilities

        public FieldCapabilities​(StreamInput in)
                          throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • fromXContent

        public static FieldCapabilities fromXContent​(java.lang.String name,
                                                     XContentParser parser)
                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • getName

        public java.lang.String getName()
        The name of the field.
      • isAggregatable

        public boolean isAggregatable()
        Whether this field can be aggregated on all indices.
      • isSearchable

        public boolean isSearchable()
        Whether this field is indexed for search on all indices.
      • getType

        public java.lang.String getType()
        The type of the field.
      • indices

        public java.lang.String[] indices()
        The list of indices where this field name is defined as type, or null if all indices have the same type for the field.
      • nonSearchableIndices

        public java.lang.String[] nonSearchableIndices()
        The list of indices where this field is not searchable, or null if the field is searchable in all indices.
      • nonAggregatableIndices

        public java.lang.String[] nonAggregatableIndices()
        The list of indices where this field is not aggregatable, or null if the field is aggregatable in all indices.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object