Class IndexType

java.lang.Object
org.elasticsearch.index.mapper.IndexType

public final class IndexType extends Object
What type of index structure is available for this field
  • Field Details

    • NONE

      public static final IndexType NONE
      An IndexType with no index structures or doc values
  • Method Details

    • hasPoints

      public boolean hasPoints()
      Returns:
      true if this IndexType has a Points index
    • hasPointsMetadata

      public boolean hasPointsMetadata()
      Returns:
      true if this IndexType has Points metadata
    • hasTerms

      public boolean hasTerms()
      Returns:
      true if this IndexType has an inverted index
    • hasVectors

      public boolean hasVectors()
      Returns:
      true if this IndexType has a vector index
    • hasDocValues

      public boolean hasDocValues()
      Returns:
      true if this IndexType has doc values
    • hasDocValuesSkipper

      public boolean hasDocValuesSkipper()
      Returns:
      true if this IndexType has a doc values skipper
    • hasOnlyDocValues

      public boolean hasOnlyDocValues()
      Returns:
      true if this IndexType has doc values but no index
    • hasDenseIndex

      public boolean hasDenseIndex()
      Returns:
      true if this IndexType has a dense index structure
    • supportsSortShortcuts

      public boolean supportsSortShortcuts()
      Returns:
      true if this IndexType has index structures that support sort-based early termination
    • terms

      public static IndexType terms(boolean isIndexed, boolean hasDocValues)
      Returns:
      an inverted-index based IndexType
    • terms

      public static IndexType terms(org.apache.lucene.document.FieldType fieldType)
      Returns:
      a terms-based IndexType from a lucene FieldType
    • skippers

      public static IndexType skippers()
      Returns:
      an IndexType with docValuesSkippers
    • points

      public static IndexType points(boolean isIndexed, boolean hasDocValues)
      Returns:
      a point-based IndexType
    • archivedPoints

      public static IndexType archivedPoints()
      Returns:
      an IndexType representing archive data, with points metadata extracted from doc values
    • docValuesOnly

      public static IndexType docValuesOnly()
      Returns:
      an IndexType with doc values but no index
    • vectors

      public static IndexType vectors()
      Returns:
      an IndexType with a vector index
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object