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
Modifier and TypeClassDescriptionstatic interface
Writer for creating field mappings physically on the underlying index. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDocumentFields
(AtlassianDocument document) Add the mappings from the fields of the specified document prior to being indexed.boolean
addMapping
(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
-