Class LabelExtractor
java.lang.Object
com.atlassian.confluence.impl.search.v2.extractor.LabelExtractor
- All Implemented Interfaces:
Extractor2
Extract label data from content entity objects.
- Since:
- 7.20
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.static final StringDeprecated.since 7.20 useSearchFieldMappings.INHERITED_LABEL_TEXTinstead.static final StringDeprecated.since 7.20 useSearchFieldMappings.LABELinstead.static final StringDeprecated.since 7.20 useSearchFieldMappings.LABEL_TEXTinstead. -
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
-
LABEL_FIELD
Deprecated.since 7.20 useSearchFieldMappings.LABELinstead.Assigned multiple fields of namespaced labels -
LABEL_TEXT_FIELD
Deprecated.since 7.20 useSearchFieldMappings.LABEL_TEXTinstead.This field is assigned a value consisting of a space delimited list of all the publicly visible labels on a piece of content. -
INHERITED_LABEL_FIELD
Deprecated.since 7.20 useSearchFieldMappings.INHERITED_LABELinstead.The same as LABEL_FIELD, 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_FIELD
Deprecated.since 7.20 useSearchFieldMappings.INHERITED_LABEL_TEXTinstead.The same as LABEL_TEXT_FIELD, but for labels inherited from a containing object (i.e. comments will get the labels of the object they are commenting on).
-
-
Constructor Details
-
LabelExtractor
public LabelExtractor()
-
-
Method Details
-
extractText
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:
extractTextin interfaceExtractor2- Parameters:
searchable- a searchable object- Returns:
- Returns a buffer of text.
-
extractFields
Extract fields from the searchable object.- Specified by:
extractFieldsin interfaceExtractor2- Parameters:
searchable- a searchable object- Returns:
- list of fields extracted from the searchable object
-
SearchFieldMappings.INHERITED_LABELinstead.