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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionanalyzer(AnalyzerDescriptorProvider analyzer) Specifies the analyzer to be used when indexing the fieldbuild()index(boolean indexed) searchAnalyzer(AnalyzerDescriptorProvider searchAnalyzer) Specifies the analyzer to be used when searching the fieldstore(boolean stored)
-
Constructor Details
-
Builder
-
-
Method Details
-
store
- 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
- Overrides:
indexin classAbstractFieldMapping.Builder- Parameters:
indexed- If true (default), the field will be indexed so that it can be searched- Returns:
- this builder
-
analyzer
Specifies the analyzer to be used when indexing the field- Returns:
- this builder
-
searchAnalyzer
Specifies the analyzer to be used when searching the field- Returns:
- this builder
-
build
- Specified by:
buildin classAbstractFieldMapping.Builder- Returns:
- a newly created mapping
-