Interface IndexContentItemVersionExtensionProvider
-
public interface IndexContentItemVersionExtensionProvider
This interface represents an extension implementation for appending custom fields to the content index. It can be used to append extra key/value based entries to the Solr document associated with a content item version.- Since:
- 10.30.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<String,Map.Entry<Object,FieldAdapter<?>>>
index(ContentItemVersion<?> contentItemVersion)
Returns a key/entry map with entries to append to the content index for the specified content item version.boolean
supports(Class<?> clazz)
Returns true if this extension provider supports indexing content item versions of this class.
-
-
-
Method Detail
-
supports
boolean supports(Class<?> clazz)
Returns true if this extension provider supports indexing content item versions of this class.- Parameters:
clazz
- The class of the content item version to check- Returns:
- true if this extension provider supports indexing content item versions of this class, false otherwise
- Since:
- 10.30.0
-
index
Map<String,Map.Entry<Object,FieldAdapter<?>>> index(ContentItemVersion<?> contentItemVersion)
Returns a key/entry map with entries to append to the content index for the specified content item version. The key is the identifier of the index field to append. The entry contains the value as the key and the field adapter to use for that field as the value of that entry.- Parameters:
contentItemVersion
- The version of the content item version to index- Returns:
- key/entry map with entries to append to the content index
- Since:
- 10.30.0
-
-