Class FieldMappings
- java.lang.Object
-
- com.atlassian.confluence.search.v2.FieldMappings
-
public class FieldMappings extends Object
Contains the field-mappings associated with a particular index.- Since:
- 8.6
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
FieldMappings.FieldMappingWriter
Writer for creating field mappings physically on the underlying index.
-
Constructor Summary
Constructors Constructor Description FieldMappings(FieldMappings.FieldMappingWriter writer, MappingDeconflictDarkFeature deconflictDarkFeature)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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.Collection<FieldMapping>
getFields()
-
-
-
Constructor Detail
-
FieldMappings
public FieldMappings(FieldMappings.FieldMappingWriter writer, MappingDeconflictDarkFeature deconflictDarkFeature)
-
-
Method Detail
-
getFields
public Collection<FieldMapping> getFields()
-
addMapping
public boolean addMapping(FieldMapping mapping)
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
public void addDocumentFields(AtlassianDocument document)
Add the mappings from the fields of the specified document prior to being indexed.- Parameters:
document
- a document instance
-
-