Package org.dlese.dpc.index.writer
Class DDSItemMetaMetadataIndexingPlugin
java.lang.Object
org.dlese.dpc.index.writer.ServletContextFileIndexingPlugin
org.dlese.dpc.index.writer.DDSItemMetaMetadataIndexingPlugin
- All Implemented Interfaces:
FileIndexingPlugin
A FileIndexingPlugin that indexes meta-metadata about items (educational resources) in
the index.
- Author:
- John Weatherley
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFields(File file, org.apache.lucene.document.Document newDoc, org.apache.lucene.document.Document existingDoc, String docType, String docGroup) Indexes a single field 'DDSItemMetaMetadataIndexingPlugin' with the value 'true'.static final FilegetMetaMetadataFile(File metadataFile) Gets the meta-metadata file associated with the given metadata file.Methods inherited from class org.dlese.dpc.index.writer.ServletContextFileIndexingPlugin
getServletContext, setServletContext
-
Constructor Details
-
DDSItemMetaMetadataIndexingPlugin
public DDSItemMetaMetadataIndexingPlugin()
-
-
Method Details
-
getMetaMetadataFile
Gets the meta-metadata file associated with the given metadata file. The file that is returned is not guaranteed to exist.- Parameters:
metadataFile- A metadata File- Returns:
- The meta-metadata File associated with the File
-
addFields
public void addFields(File file, org.apache.lucene.document.Document newDoc, org.apache.lucene.document.Document existingDoc, String docType, String docGroup) throws Exception Indexes a single field 'DDSItemMetaMetadataIndexingPlugin' with the value 'true'. The index may be searched using this field/value to determine which records have been indexed using this plugin.- Parameters:
file- The file that is being indexednewDoc- The new Lucene Document that will be inserted in the index for this fileexistingDoc- The previous Lucene Document that existed for this record, or null if not availabledocType- The docType for this file, for example 'adn', 'dlese_collect' (equivalent to XML format in the DLESE metadata repository)docGroup- The docGroup associated with this file, for example 'dcc', 'comet', or null if none is associated (equivalent to the collection key in the DLESE metadata repository)- Throws:
Exception- Exception should be thrown to index this Document as an error- See Also:
-