Class SolrPageIndexer
java.lang.Object
fr.paris.lutece.plugins.search.solr.indexer.SolrPageIndexer
- All Implemented Interfaces:
SolrIndexer
The indexer service for Solr.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the list of dynamic fields.Returns the description.getDocuments(String strIdDocument) Returns a list of SolR documents to add to the indexgetName()Returns the name of the indexer.Returns the name of the indexed resources.getResourceUid(String strResourceId, String strResourceType) Return the uid of a resourceReturns the version.Index all solr documents from the plugin, replace ListgetDocuments( ) method booleanisEnable()Tells whether the service is enable or not
-
Field Details
-
RESSOURCE_PAGE
- See Also:
-
NAME
- See Also:
-
-
Constructor Details
-
SolrPageIndexer
public SolrPageIndexer()Creates a new SolrPageIndexer
-
-
Method Details
-
indexDocuments
Index all solr documents from the plugin, replace ListgetDocuments( ) method - Specified by:
indexDocumentsin interfaceSolrIndexer- Returns:
- A list of error messages or null if there is no error
-
getName
Returns the name of the indexer.- Specified by:
getNamein interfaceSolrIndexer- Returns:
- the name of the indexer
-
getVersion
Returns the version.- Specified by:
getVersionin interfaceSolrIndexer- Returns:
- the version.
-
getDescription
Returns the description.- Specified by:
getDescriptionin interfaceSolrIndexer- Returns:
- the description.
-
isEnable
public boolean isEnable()Tells whether the service is enable or not- Specified by:
isEnablein interfaceSolrIndexer- Returns:
- true if enable, otherwise false
-
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 ...)- Specified by:
getAdditionalFieldsin interfaceSolrIndexer- Returns:
- the list of additional indexed fields or null if there are no additional fields
-
getDocuments
Returns a list of SolR documents to add to the index- Specified by:
getDocumentsin interfaceSolrIndexer- 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
Returns the name of the indexed resources. To prevent conflicts, the names must begin with PluginName_ where PluginName is the name of the plugin.- Specified by:
getResourcesNamein interfaceSolrIndexer- Returns:
- The list of names of the indexed resources or null
-
getResourceUid
Return the uid of a resource- Specified by:
getResourceUidin interfaceSolrIndexer- Parameters:
strResourceId- the identifier of the resourcestrResourceType- the type of the resource- Returns:
- the uid of a resource or null if the resource is unknow
-