Class TextFieldMapping
java.lang.Object
com.atlassian.confluence.plugins.index.api.mapping.AbstractFieldMapping
com.atlassian.confluence.plugins.index.api.mapping.TextFieldMapping
- All Implemented Interfaces:
FieldMapping
Field mapping for analyzed text.
- Since:
- 8.6
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> T
accept
(FieldMappingVisitor<T> visitor) Applies the supplied visitor to this field mapping with its respective callback.static TextFieldMapping.Builder
createField
(String value) Create a field for the current mapping with the given valueboolean
Analyzer to be used when indexing the fieldAnalyzer to be used when searching the fieldint
hashCode()
toString()
Methods inherited from class com.atlassian.confluence.plugins.index.api.mapping.AbstractFieldMapping
getName, isIndexed, isStored
-
Constructor Details
-
TextFieldMapping
-
-
Method Details
-
getAnalyzer
Analyzer to be used when indexing the field- Returns:
- The analyzer to be used when indexing the field
-
getSearchAnalyzer
Analyzer to be used when searching the field- Returns:
- The analyzer to be used when searching the field
-
createField
Create a field for the current mapping with the given value- Parameters:
value
-- Returns:
- the newly created field
-
accept
Description copied from interface:FieldMapping
Applies the supplied visitor to this field mapping with its respective callback.- Parameters:
visitor
- The visitor to dispatch- Returns:
- The value that is returned by the supplied visitor
-
toString
- Overrides:
toString
in classAbstractFieldMapping
-
equals
- Overrides:
equals
in classAbstractFieldMapping
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAbstractFieldMapping
-
builder
-