public class DcsDataFileIndexingPlugin extends ServletContextFileIndexingPlugin
Status information is obtained from a DcsDataRecord
via the DcsDataManager.
Invoked by the RepositoryManager
putRecord method during all indexing operations.
| Modifier and Type | Field and Description |
|---|---|
protected static boolean |
debug
Description of the Field
|
static java.lang.String |
FIELD_NS
Name space prefix for dcs indexing fields
|
| Constructor and Description |
|---|
DcsDataFileIndexingPlugin() |
| 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)
Adds workflow status fields to the index for a particular record.
|
protected void |
prtln(java.lang.String s)
Print a line to standard out.
|
getServletContext, setServletContextprotected static boolean debug
public static final java.lang.String FIELD_NS
public final 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
newDoc - The new Document that is being created for this
resourceexistingDoc - An existing Document that currently resides in the
index for the given resource, or null if none was previously presentfile - The sourceFile that is being indexed.docType - The feature to be added to the Fields attributedocGroup - The feature to be added to the Fields attributejava.lang.Exception - If an error occursDocumentprotected void prtln(java.lang.String s)
s - The String to print.