Interface Field.Builder<T extends Field>

All Known Implementing Classes:
com.atlassian.jira.search.field.AbstractField.Builder, AnalyzedTextField.Builder, DateTimeField.Builder, DoubleField.Builder, IntField.Builder, KeywordField.Builder, LongField.Builder
Enclosing interface:
Field

public static interface Field.Builder<T extends Field>
  • Method Details

    • indexed

      Field.Builder<T> indexed()
    • docValues

      Field.Builder<T> docValues()
    • stored

      Field.Builder<T> stored()
    • multiValued

      Field.Builder<T> multiValued()
    • subfield

      Field.Builder<T> subfield(Field field)
      Adds a subfield to this field. The subfield will be indexed with the same value and cannot be indexed with a different value, for example for handling different sorting behaviour. To do this, index a separate field.
      Parameters:
      field - the subfield to add
      Returns:
      this builder
      Since:
      10.4
    • subfield

      default Field.Builder<T> subfield(Field.Builder<?> fieldBuilder)
      Adds a subfield to this field. The subfield will be indexed with the same value and cannot be indexed with a different value, for example for handling different sorting behaviour. To do this, index a separate field.
      Parameters:
      fieldBuilder - the builder for the subfield
      Returns:
      this builder
      Since:
      10.4
    • build

      T build()