org.dlese.dpc.repository.indexing
Class SessionIndexingPlugin
java.lang.Object
org.dlese.dpc.repository.indexing.SessionIndexingPlugin
- All Implemented Interfaces:
- FileIndexingPlugin
public class SessionIndexingPlugin
- extends Object
- implements FileIndexingPlugin
Method Summary |
void |
addFields(File file,
org.apache.lucene.document.Document newDoc,
org.apache.lucene.document.Document existingDoc,
String docType,
String docGroup)
This method may be used to add custom fields to a Lucene Document for a given file prior to it's being
inserted into the index. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SessionIndexingPlugin
public SessionIndexingPlugin(String sessionId)
addFields
public void addFields(File file,
org.apache.lucene.document.Document newDoc,
org.apache.lucene.document.Document existingDoc,
String docType,
String docGroup)
- Description copied from interface:
FileIndexingPlugin
- This method may be used to add custom fields to a Lucene Document for a given file prior to it's being
inserted into the index. This method is called by the
FileIndexingServiceWriter
after it has
completed adding it's fields to the Lucene Document.
- Specified by:
addFields
in interface FileIndexingPlugin
- 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)- See Also:
Document