Class FieldMappings


  • public class FieldMappings
    extends Object
    Contains the field-mappings associated with a particular index.
    Since:
    8.6
    • Method Detail

      • 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