Class LastModifierNameExtractor
- java.lang.Object
-
- com.atlassian.confluence.impl.search.v2.extractor.LastModifierNameExtractor
-
- All Implemented Interfaces:
Extractor2
public class LastModifierNameExtractor extends Object implements Extractor2
Extracts the last modifier of aConfluenceEntityObjectas a unanalyzed, indexed field for the change index. Differs fromLastModifierNameContentExtractor.- Since:
- 7.17
-
-
Field Summary
Fields Modifier and Type Field Description static StringANONYMOUS_LAST_MODIFIER_IDDeprecated.since 7.20 useSearchFieldMappings.ANONYMOUS_LAST_MODIFIER_IDinstead.
-
Constructor Summary
Constructors Constructor Description LastModifierNameExtractor()
-
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
-
ANONYMOUS_LAST_MODIFIER_ID
@Deprecated public static final String ANONYMOUS_LAST_MODIFIER_ID
Deprecated.since 7.20 useSearchFieldMappings.ANONYMOUS_LAST_MODIFIER_IDinstead.Constant to represent the value for an anonymous last modifier in the index. We want to record anonymous users, so we can remove change documents by them (also because you cannot use lucene to search for documents that don't have a field).- 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
-
-