Package org.mycore.mets.solr
Class MCRMetsFileIndexAccumulator
java.lang.Object
org.mycore.mets.solr.MCRMetsFileIndexAccumulator
- All Implemented Interfaces:
MCRSolrFileIndexAccumulator
Class indexes label attributes in mets files.
By default, the labels are indexed in solr field
mets_label
. Configure your own by providing a proper
name in property MCR.Solr.Mets.Label.Field
.- Author:
- shermann (Silvio Hermann)
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accumulate
(org.apache.solr.common.SolrInputDocument solrInputDocument, Path path, BasicFileAttributes basicFileAttributes) Adds additional information to a File.
-
Field Details
-
LOGGER
-
-
Constructor Details
-
MCRMetsFileIndexAccumulator
public MCRMetsFileIndexAccumulator()
-
-
Method Details
-
accumulate
public void accumulate(org.apache.solr.common.SolrInputDocument solrInputDocument, Path path, BasicFileAttributes basicFileAttributes) throws IOException Description copied from interface:MCRSolrFileIndexAccumulator
Adds additional information to a File.- Specified by:
accumulate
in interfaceMCRSolrFileIndexAccumulator
- Parameters:
solrInputDocument
- which holds the informationpath
- to the file in a derivatebasicFileAttributes
- of the file in a derivate- Throws:
IOException
-