Class TextFieldMapping.Builder
- java.lang.Object
-
- com.atlassian.confluence.plugins.index.api.mapping.AbstractFieldMapping.Builder
-
- com.atlassian.confluence.plugins.index.api.mapping.TextFieldMapping.Builder
-
- Enclosing class:
- TextFieldMapping
public static class TextFieldMapping.Builder extends AbstractFieldMapping.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TextFieldMapping.Builderanalyzer(AnalyzerDescriptorProvider analyzer)Specifies the analyzer to be used when indexing the fieldTextFieldMappingbuild()TextFieldMapping.Builderindex(boolean indexed)TextFieldMapping.BuildersearchAnalyzer(AnalyzerDescriptorProvider searchAnalyzer)Specifies the analyzer to be used when searching the fieldTextFieldMapping.Builderstore(boolean stored)
-
-
-
Constructor Detail
-
Builder
public Builder(String name)
-
-
Method Detail
-
store
public TextFieldMapping.Builder store(boolean stored)
- Overrides:
storein classAbstractFieldMapping.Builder- 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
public TextFieldMapping.Builder index(boolean indexed)
- Overrides:
indexin classAbstractFieldMapping.Builder- Parameters:
indexed- If true (default), the field will be indexed so that it can be searched- Returns:
- this builder
-
analyzer
public TextFieldMapping.Builder analyzer(AnalyzerDescriptorProvider analyzer)
Specifies the analyzer to be used when indexing the field- Returns:
- this builder
-
searchAnalyzer
public TextFieldMapping.Builder searchAnalyzer(AnalyzerDescriptorProvider searchAnalyzer)
Specifies the analyzer to be used when searching the field- Returns:
- this builder
-
build
public TextFieldMapping build()
- Specified by:
buildin classAbstractFieldMapping.Builder- Returns:
- a newly created mapping
-
-