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 analyzerProvider)Specifies the analyzer to be used when indexing and searching the fieldTextFieldMappingbuild()TextFieldMapping.Builderstore(boolean stored)-
Methods inherited from class com.atlassian.confluence.plugins.index.api.mapping.AbstractFieldMapping.Builder
index
-
-
-
-
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
-
analyzer
public TextFieldMapping.Builder analyzer(AnalyzerDescriptorProvider analyzerProvider)
Specifies the analyzer to be used when indexing and searching the field- Returns:
- this builder
-
build
public TextFieldMapping build()
- Specified by:
buildin classAbstractFieldMapping.Builder- Returns:
- a newly created mapping
-
-