Class SpaceKeyAndNameExtractor
- java.lang.Object
-
- com.atlassian.confluence.impl.search.v2.extractor.SpaceKeyAndNameExtractor
-
- All Implemented Interfaces:
Extractor2
public class SpaceKeyAndNameExtractor extends Object implements Extractor2
Extracts and indexes the space key and name for searchables that belong to a space. Also Adds a field calledSearchFieldNames.IN_SPACEto allowPersonalInformationobjects to be retrieved in searches.- Since:
- 7.14
-
-
Field Summary
Fields Modifier and Type Field Description static StringIN_SPACE_FIELDDeprecated.since 7.20 useSearchFieldNames.IN_SPACEinstead.
-
Constructor Summary
Constructors Constructor Description SpaceKeyAndNameExtractor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<FieldDescriptor>extractFields(Object searchable)Extract fields from the searchable object.StringBuilderextractText(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 Detail
-
IN_SPACE_FIELD
@Deprecated public static final String IN_SPACE_FIELD
Deprecated.since 7.20 useSearchFieldNames.IN_SPACEinstead.- See Also:
- Constant Field Values
-
-
Method Detail
-
extractText
public StringBuilder extractText(Object searchable)
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
public Collection<FieldDescriptor> extractFields(Object searchable)
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
-
-