public class DDSItemMetaMetadataIndexingPlugin extends ServletContextFileIndexingPlugin
Constructor and Description |
---|
DDSItemMetaMetadataIndexingPlugin() |
Modifier and Type | Method and Description |
---|---|
void |
addFields(java.io.File file,
org.apache.lucene.document.Document newDoc,
org.apache.lucene.document.Document existingDoc,
java.lang.String docType,
java.lang.String docGroup)
Indexes a single field 'DDSItemMetaMetadataIndexingPlugin' with the value 'true'.
|
static java.io.File |
getMetaMetadataFile(java.io.File metadataFile)
Gets the meta-metadata file associated with the given metadata file.
|
getServletContext, setServletContext
public static final java.io.File getMetaMetadataFile(java.io.File metadataFile)
metadataFile
- A metadata Filepublic void addFields(java.io.File file, org.apache.lucene.document.Document newDoc, org.apache.lucene.document.Document existingDoc, java.lang.String docType, java.lang.String docGroup) throws java.lang.Exception
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)java.lang.Exception
- Exception should be thrown to index this Document as an errorDocument