Class CustomContentSearchExtractor
- java.lang.Object
-
- com.atlassian.confluence.impl.search.v2.extractor.CustomContentSearchExtractor
-
- All Implemented Interfaces:
Extractor2
public class CustomContentSearchExtractor extends Object implements Extractor2
Extracts some base "all content needs this" fields from the CustomContentEntityObject.- Since:
- 7.20
-
-
Field Summary
Fields Modifier and Type Field Description static String
FIELD_CONTENT_PLUGIN_KEY
Deprecated.since 7.20 useSearchFieldMappings.CONTENT_PLUGIN_KEY
instead.
-
Constructor Summary
Constructors Constructor Description CustomContentSearchExtractor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<FieldDescriptor>
extractFields(Object searchable)
Extract fields from the searchable object.StringBuilder
extractText(Object searchable)
Always returns an empty buffer.
-
-
-
Field Detail
-
FIELD_CONTENT_PLUGIN_KEY
@Deprecated public static final String FIELD_CONTENT_PLUGIN_KEY
Deprecated.since 7.20 useSearchFieldMappings.CONTENT_PLUGIN_KEY
instead.
-
-
Method Detail
-
extractText
public StringBuilder extractText(Object searchable)
Always returns an empty buffer.- Specified by:
extractText
in interfaceExtractor2
- Parameters:
searchable
- a searchable object- Returns:
- an empty buffer
-
extractFields
public Collection<FieldDescriptor> extractFields(Object searchable)
Extract fields from the searchable object.- Specified by:
extractFields
in interfaceExtractor2
- Parameters:
searchable
- a searchable object- Returns:
- collection of fields extracted from the searchable object
-
-