# Uses of Class
org.apache.lucene.document.FieldType

Packages that use FieldType
Package
Description
org.apache.lucene.document
The logical representation of a `Document` for indexing and searching.

- ## Uses of FieldType in org.apache.lucene.document

  Fields in org.apache.lucene.document declared as FieldType
  Modifier and Type
  Field
  Description
  `protected static final FieldType`
  ShapeDocValuesField.`FIELD_TYPE`
  FieldType for ShapeDocValues field
  `static final FieldType`
  BinaryDocValuesField.`TYPE`
  Type for straight bytes DocValues.
  `static final FieldType`
  LatLonDocValuesField.`TYPE`
  Type for a LatLonDocValuesField
  `static final FieldType`
  LatLonPoint.`TYPE`
  Type for an indexed LatLonPoint
  `static final FieldType`
  NumericDocValuesField.`TYPE`
  Type for numeric DocValues.
  `protected static final FieldType`
  ShapeField.`TYPE`
  tessellated triangles are seven dimensions; the first four are the bounding box index dimensions
  `static final FieldType`
  SortedDocValuesField.`TYPE`
  Type for sorted bytes DocValues
  `static final FieldType`
  SortedNumericDocValuesField.`TYPE`
  Type for sorted numeric DocValues.
  `static final FieldType`
  SortedSetDocValuesField.`TYPE`
  Type for sorted bytes DocValues
  `static final FieldType`
  StoredField.`TYPE`
  Type for a stored-only field.
  `static final FieldType`
  XYDocValuesField.`TYPE`
  Type for a XYDocValuesField
  `static final FieldType`
  XYPointField.`TYPE`
  Type for an indexed XYPoint
  `static final FieldType`
  StringField.`TYPE_NOT_STORED`
  Indexed, not tokenized, omits norms, indexes DOCS_ONLY, not stored.
  `static final FieldType`
  TextField.`TYPE_NOT_STORED`
  Indexed, tokenized, not stored.
  `static final FieldType`
  StringField.`TYPE_STORED`
  Indexed, not tokenized, omits norms, indexes DOCS_ONLY, stored
  `static final FieldType`
  TextField.`TYPE_STORED`
  Indexed, tokenized, stored.
  Methods in org.apache.lucene.document that return FieldType
  Modifier and Type
  Method
  Description
  `static FieldType`
  KnnByteVectorField.`createFieldType(int dimension, VectorSimilarityFunction similarityFunction)`
  A convenience method for creating a vector field type.
  `static FieldType`
  KnnFloatVectorField.`createFieldType(int dimension, VectorSimilarityFunction similarityFunction)`
  A convenience method for creating a vector field type.
  Constructors in org.apache.lucene.document with parameters of type FieldType
  Modifier
  Constructor
  Description
  ``
  `KnnByteVectorField(String name, byte[] vector, FieldType fieldType)`
  Creates a numeric vector field.
  ``
  `KnnFloatVectorField(String name, float[] vector, FieldType fieldType)`
  Creates a numeric vector field.
  ``
  `StoredField(String name, CharSequence value, FieldType type)`
  Expert: allows you to customize the `FieldType`.
  ``
  `StoredField(String name, String value, FieldType type)`
  Expert: allows you to customize the `FieldType`.
  `protected`
  `StoredField(String name, FieldType type)`
  Expert: allows you to customize the `FieldType`.
  ``
  `StoredField(String name, BytesRef bytes, FieldType type)`
  Expert: allows you to customize the `FieldType`.