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
Modifier and TypeFieldDescriptionstatic final String
Deprecated.static final String
Deprecated.since 7.20 useSearchFieldMappings.INHERITED_LABEL_TEXT
instead.static final String
Deprecated.since 7.20 useSearchFieldMappings.LABEL
instead.static final String
Deprecated.since 7.20 useSearchFieldMappings.LABEL_TEXT
instead. -
Constructor Summary
-
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.LABEL
instead.Assigned multiple fields of namespaced labels -
LABEL_TEXT_FIELD
Deprecated.since 7.20 useSearchFieldMappings.LABEL_TEXT
instead.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_LABEL
instead.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_TEXT
instead.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:
extractText
in interfaceExtractor2
- Parameters:
searchable
- a searchable object- Returns:
- Returns a buffer of text.
-
extractFields
Extract fields from the searchable object.- Specified by:
extractFields
in interfaceExtractor2
- Parameters:
searchable
- a searchable object- Returns:
- list of fields extracted from the searchable object
-
SearchFieldMappings.INHERITED_LABEL
instead.