Class SearchFieldMappings


  • public final class SearchFieldMappings
    extends Object
    A helper class that contains the known set of field mappings for the core indexes.
    Since:
    8.6
    • Field Detail

      • ATTACHMENT_DOWNLOAD_PATH

        public static final StringFieldMapping ATTACHMENT_DOWNLOAD_PATH
      • ATTACHMENT_FILE_EXTENSION

        public static final StringFieldMapping ATTACHMENT_FILE_EXTENSION
      • ATTACHMENT_FILE_NAME

        public static final TextFieldMapping ATTACHMENT_FILE_NAME
      • ATTACHMENT_FILE_NAME_UNTOKENIZED

        public static final StringFieldMapping ATTACHMENT_FILE_NAME_UNTOKENIZED
      • ATTACHMENT_FILE_SIZE

        public static final LongFieldMapping ATTACHMENT_FILE_SIZE
      • ATTACHMENT_NICE_FILE_SIZE

        public static final StringFieldMapping ATTACHMENT_NICE_FILE_SIZE
      • ATTACHMENT_NICE_TYPE

        public static final StringFieldMapping ATTACHMENT_NICE_TYPE
        Stores a general type for multiple MIME types; multiple MIME types may map to one description, e.g. "Image".
      • ATTACHMENT_OWNER_CONTENT_TYPE

        public static final StringFieldMapping ATTACHMENT_OWNER_CONTENT_TYPE
        Stores the fully qualified class name of the content that owns the attachment
      • ATTACHMENT_OWNER_REAL_TITLE

        public static final StringFieldMapping ATTACHMENT_OWNER_REAL_TITLE
      • ATTACHMENT_OWNER_URL_PATH

        public static final StringFieldMapping ATTACHMENT_OWNER_URL_PATH
      • ATTACHMENT_OWNER_USERNAME

        public static final StringFieldMapping ATTACHMENT_OWNER_USERNAME
      • ATTACHMENT_VERSION_COMMENT

        public static final TextFieldMapping ATTACHMENT_VERSION_COMMENT
      • CONTENT_STORED

        public static final TextFieldMapping CONTENT_STORED
        Stored contentBody, only populated if its size is within 1MB limit (or as specified in "atlassian.indexing.contentbody.maxsize" system property). Any content larger than that won't be stored in the index, nor fetched in the search results.
        See Also:
        ContentBodyMaxSizeSystemProperty
      • CONTENT_NAME_UNSTEMMED

        public static final TextFieldMapping CONTENT_NAME_UNSTEMMED
      • CONTENT_NAME_UNTOKENIZED

        public static final StringFieldMapping CONTENT_NAME_UNTOKENIZED
        An untokenized version of the title of a piece of content to enable sorting on it
      • DOCUMENT_TYPE

        @Deprecated
        public static final StringFieldMapping DOCUMENT_TYPE
        Deprecated.
        since 8.6. This field is redundant because CONTENT and CHANGE have been split to separate indexes.
        Represents the document type.
        See Also:
        SearchResultType
      • INHERITED_LABEL

        public static final StringFieldMapping INHERITED_LABEL
        The same as LABEL, but for labels inherited from a containing object (i.e. comments will get the labels of the object they are commenting on).
      • INHERITED_LABEL_TEXT

        public static final TextFieldMapping INHERITED_LABEL_TEXT
        The same as LABEL_TEXT, but for labels inherited from a containing object (i.e. comments will get the labels of the object they are commenting on).
      • IS_DEACTIVATED_USER

        public static final BooleanFieldMapping IS_DEACTIVATED_USER
        "true" if the User is deactivated/disabled, else "false".
      • IS_EXTERNALLY_DELETED_USER

        public static final BooleanFieldMapping IS_EXTERNALLY_DELETED_USER
        "true" if the User has been removed from the system via an External Directory, else "false".
      • IS_LICENSED_USER

        public static final BooleanFieldMapping IS_LICENSED_USER
        "true" if the User has a license to use the system, else "false".
      • IS_SHADOWED_USER

        public static final BooleanFieldMapping IS_SHADOWED_USER
        "true" if the User is a shadowed user. The shadowed users come from multiple user directories. The primary user is the active user.
      • LABEL

        public static final StringFieldMapping LABEL
        Assigned multiple fields of namespaced labels
      • LABEL_TEXT

        public static final TextFieldMapping LABEL_TEXT
        This field is assigned a value consisting of a space delimited list of all the publicly visible labels on a piece of content.
      • LAST_MODIFICATION_DATE

        public static final DateFieldMapping LAST_MODIFICATION_DATE
      • ANONYMOUS_LAST_MODIFIER_ID

        public static final String ANONYMOUS_LAST_MODIFIER_ID
        Constant to represent the value for an anonymous last modifier in the index. We want to record anonymous users, so we can remove change documents by them (also because you cannot use lucene to search for documents that don't have a field).
        See Also:
        Constant Field Values
      • PARENT_TITLE_UNSTEMMED

        public static final TextFieldMapping PARENT_TITLE_UNSTEMMED
      • PERSONAL_INFORMATION_HAS_PERSONAL_SPACE

        public static final StringFieldMapping PERSONAL_INFORMATION_HAS_PERSONAL_SPACE
      • RETENTION_POLICY_DELETE_TRASH

        public static final StringFieldMapping RETENTION_POLICY_DELETE_TRASH
      • RETENTION_POLICY_DELETE_VERSION

        public static final StringFieldMapping RETENTION_POLICY_DELETE_VERSION
      • SPACE_KEY

        public static final StringFieldMapping SPACE_KEY
        Space key (a constant for the field name we use in our *.lucene.xml mappings)
      • USER_NAME

        public static final TextFieldMapping USER_NAME
        The username as returned by Entity.getName(). @see PersonalInformation.lucene.xml
      • FULL_NAME

        public static final TextFieldMapping FULL_NAME
        The display name of the user. @see PersonalInformation.lucene.xml