Class SpaceKeyAndNameExtractor
java.lang.Object
com.atlassian.confluence.impl.search.v2.extractor.SpaceKeyAndNameExtractor
- All Implemented Interfaces:
Extractor2
Extracts and indexes the space key and name for searchables that belong to a space. Also Adds a field called
SearchFieldMappings.IN_SPACE to allow PersonalInformation objects to be retrieved
in searches.- Since:
- 7.14
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionextractFields(Object searchable) Extract fields from the searchable object.extractText(Object searchable) 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.
-
Field Details
-
IN_SPACE_FIELD
Deprecated.since 7.20 useSearchFieldMappings.IN_SPACEinstead.
-
-
Constructor Details
-
SpaceKeyAndNameExtractor
public SpaceKeyAndNameExtractor()
-
-
Method Details
-
extractText
Description copied from interface:Extractor2Returns 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:
extractTextin interfaceExtractor2- 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
Description copied from interface:Extractor2Extract fields from the searchable object.- Specified by:
extractFieldsin interfaceExtractor2- Parameters:
searchable- a searchable object- Returns:
- list of fields extracted from the searchable object
-
SearchFieldMappings.IN_SPACEinstead.