Class DDSItemMetaMetadataIndexingPlugin

java.lang.Object
org.dlese.dpc.index.writer.ServletContextFileIndexingPlugin
org.dlese.dpc.index.writer.DDSItemMetaMetadataIndexingPlugin
All Implemented Interfaces:
FileIndexingPlugin

public class DDSItemMetaMetadataIndexingPlugin extends ServletContextFileIndexingPlugin
A FileIndexingPlugin that indexes meta-metadata about items (educational resources) in the index.
Author:
John Weatherley
See Also:
  • Constructor Details

    • DDSItemMetaMetadataIndexingPlugin

      public DDSItemMetaMetadataIndexingPlugin()
  • Method Details

    • getMetaMetadataFile

      public static final File getMetaMetadataFile(File metadataFile)
      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 indexed
      newDoc - The new Lucene Document that will be inserted in the index for this file
      existingDoc - The previous Lucene Document that existed for this record, or null if not available
      docType - 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:
      • Document