Class StringFieldMapping.Builder
java.lang.Object
com.atlassian.confluence.plugins.index.api.mapping.AbstractFieldMapping.Builder
com.atlassian.confluence.plugins.index.api.mapping.StringFieldMapping.Builder
- Enclosing class:
StringFieldMapping
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasLowercase
(boolean asLowercase) Set whether this field is a lowercasebuild()
index
(boolean indexed) store
(boolean stored) withLowercase
(boolean withLowercase) Set whether to support a lowercase version of the field
-
Constructor Details
-
Builder
-
-
Method Details
-
store
- Overrides:
store
in 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:
index
in classAbstractFieldMapping.Builder
- Parameters:
indexed
- If true (default), the field will be indexed so that it can be searched- Returns:
- this builder
-
asLowercase
Set whether this field is a lowercaseThis will only be used when search engine is OpenSearch OpenSearch will use the field as it is when perform
LowercaseFieldSort
- Parameters:
asLowercase
- whether this field is a lowercase- Returns:
- Builder
- Since:
- 8.8
-
withLowercase
Set whether to support a lowercase version of the fieldThis will only be used when search engine is OpenSearch OpenSearch will create a lowercase sub field for this field if this is true OpenSearch will use the subfield when perform
LowercaseFieldSort
- Parameters:
withLowercase
- Whether to support a lowercase version of the field- Returns:
- Builder
- Since:
- 8.8
-
build
- Specified by:
build
in classAbstractFieldMapping.Builder
- Returns:
- a newly created mapping
-