Class FieldMappings
java.lang.Object
com.atlassian.confluence.search.v2.FieldMappings
Contains the field-mappings associated with a particular index.
- Since:
- 8.6
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceWriter for creating field mappings physically on the underlying index. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDocumentFields(AtlassianDocument document) Add the mappings from the fields of the specified document prior to being indexed.booleanaddMapping(FieldMapping mapping) Add the specified field mapping if it's not already present.
-
Constructor Details
-
FieldMappings
-
-
Method Details
-
getFields
-
addMapping
Add the specified field mapping if it's not already present.- Parameters:
mapping- a mapping to add- Returns:
- true if the specified mapping was added, or false if it was already present.
-
addDocumentFields
Add the mappings from the fields of the specified document prior to being indexed.- Parameters:
document- a document instance
-