Class AbstractFieldMapping.Builder

java.lang.Object
com.atlassian.confluence.plugins.index.api.mapping.AbstractFieldMapping.Builder
Direct Known Subclasses:
BooleanFieldMapping.Builder, DateFieldMapping.Builder, DoubleFieldMapping.Builder, FloatFieldMapping.Builder, IntFieldMapping.Builder, LongFieldMapping.Builder, NestedStringFieldMapping.Builder, StringFieldMapping.Builder, TextFieldMapping.Builder
Enclosing class:
AbstractFieldMapping

protected abstract static class AbstractFieldMapping.Builder extends Object
  • Constructor Details

    • Builder

      protected Builder(String name)
  • Method Details

    • store

      protected AbstractFieldMapping.Builder store(boolean stored)
      Parameters:
      stored - If true, the field will store the original value so that it can be retrieved. Default = false, i.e. the field can only be searched.
      Returns:
      this builder
    • index

      protected AbstractFieldMapping.Builder index(boolean indexed)
      Parameters:
      indexed - If true (default), the field will be indexed so that it can be searched
      Returns:
      this builder
    • build

      public abstract AbstractFieldMapping build()
      Returns:
      a newly created mapping