Interface SolrIndexer
-
- All Known Implementing Classes:
SolrPageIndexer
public interface SolrIndexerSolrIndexer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<Field>getAdditionalFields()Returns the list of dynamic fields.StringgetDescription()Returns the description.List<SolrItem>getDocuments(String strIdDocument)Returns a list of SolR documents to add to the indexStringgetName()Returns the name of the indexer.List<String>getResourcesName()Returns the name of the indexed resources.StringgetResourceUid(String strResourceId, String strResourceType)Return the uid of a resourceStringgetVersion()Returns the version.List<String>indexDocuments()Index all solr documents from the plugin, replace ListgetDocuments( ) method booleanisEnable()Tells whether the service is enable or not
-
-
-
Method Detail
-
indexDocuments
List<String> indexDocuments()
Index all solr documents from the plugin, replace ListgetDocuments( ) method - Returns:
- A list of error messages or null if there is no error
-
getName
String getName()
Returns the name of the indexer.- Returns:
- the name of the indexer
-
getVersion
String getVersion()
Returns the version.- Returns:
- the version.
-
getDescription
String getDescription()
Returns the description.- Returns:
- the description.
-
isEnable
boolean isEnable()
Tells whether the service is enable or not- Returns:
- true if enable, otherwise false
-
getAdditionalFields
List<Field> getAdditionalFields()
Returns the list of dynamic fields. The name of the fields must end with aSolrItemsuffix (SolrItem.DYNAMIC_URL_FIELD_SUFFIX, SolrItem.DYNAMIC_TEXT_FIELD_SUFFIX ...)- Returns:
- the list of additional indexed fields or null if there are no additional fields
-
getDocuments
List<SolrItem> getDocuments(String strIdDocument)
Returns a list of SolR documents to add to the index- Parameters:
strIdDocument- the identifier of the document to convert into aSolrItemobject- Returns:
- A list of documents corresponding to the resource identifier. If nothing has been found, returns null
-
getResourcesName
List<String> getResourcesName()
Returns the name of the indexed resources. To prevent conflicts, the names must begin with PluginName_ where PluginName is the name of the plugin.- Returns:
- The list of names of the indexed resources or null
-
-