Class SpaceDescriptionUsernameExtractor

  • All Implemented Interfaces:
    Extractor2

    public class SpaceDescriptionUsernameExtractor
    extends Object
    implements Extractor2
    Adding the "username" field to SpaceDescription index documents will allow them to be sorted together with PersonalInformation documents in People Directory search. See com.atlassian.confluence.user.actions.PeopleDirectoryAction.search()
    Since:
    7.17
    • Constructor Detail

      • SpaceDescriptionUsernameExtractor

        public SpaceDescriptionUsernameExtractor()
    • Method Detail

      • extractText

        public StringBuilder extractText​(Object searchable)
        Description copied from interface: Extractor2
        Returns a buffer of text that will be appended onto the end of a larger buffer of text that will eventually become the searchable body text.
        Specified by:
        extractText in interface Extractor2
        Parameters:
        searchable - a searchable object
        Returns:
        Returns a buffer of text that will be appended onto the end of a larger buffer of text that will eventually become the searchable body text.
      • extractFields

        public Collection<FieldDescriptor> extractFields​(Object searchable)
        Description copied from interface: Extractor2
        Extract fields from the searchable object.
        Specified by:
        extractFields in interface Extractor2
        Parameters:
        searchable - a searchable object
        Returns:
        list of fields extracted from the searchable object