|
DLESE Tools v1.6.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.dlese.dpc.index.writer.FileIndexingServiceWriter
org.dlese.dpc.index.writer.XMLFileIndexingWriter
org.dlese.dpc.index.writer.NCSCollectionFileIndexingWriter
public class NCSCollectionFileIndexingWriter
Used to write a Lucene Document for a NCS Collection XML record.
XMLDocReader,
RecordDataService,
FileIndexingServiceWriter| Constructor Summary | |
|---|---|
NCSCollectionFileIndexingWriter()
Create a NCSCollectionFileIndexingWriter. |
|
| Method Summary | |
|---|---|
protected String[] |
_getIds()
Gets the ID of this collection record. |
protected void |
addFields(org.apache.lucene.document.Document newDoc,
org.apache.lucene.document.Document existingDoc,
File sourceFile)
Adds fields to the index that are part of the collection-level Document. |
protected void |
destroy()
This method is called at the conclusion of processing and may be used for tear-down. |
String |
getDescription()
The description for the collection. |
String |
getDocType()
Gets the docType attribute of the NCSCollectionFileIndexingWriter, which is 'ncs_collect.' |
String |
getReaderClass()
Gets the name of the concrete DocReader class that is used to read
this type of Document, which is "XMLDocReader". |
String |
getTitle()
Returns the title for the collection. |
String[] |
getUrls()
Gets the URL to the collection. |
protected String |
getValidationReport()
Gets a report detailing any errors found in the XML validation of the collection record, or null if no error was found. |
protected Date |
getWhatsNewDate()
Returns the date used to determine "What's new" in the library. |
protected String |
getWhatsNewType()
Returns 'collection'. |
boolean |
indexFullContentInDefaultAndStems()
Place the entire XML content into the default and stems search field. |
void |
init(File source,
org.apache.lucene.document.Document existingDoc)
Nothing needed |
| Methods inherited from class org.dlese.dpc.index.writer.XMLFileIndexingWriter |
|---|
addCustomFields, getBoundingBox, getCollections, getDeletedDoc, getDocGroup, getDom4jDoc, getFieldContent, getFieldContent, getFieldName, getIds, getIndex, getMyAnnoResultDocs, getMyCollectionDoc, getOaiModtime, getPrimaryId, getRecordDataService, getRelatedIds, getRelatedIdsMap, getRelatedUrls, getRelatedUrlsMap, getTermStringFromStringArray, getXmlIndexer, getXmlIndexerFieldsConfig |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NCSCollectionFileIndexingWriter()
| Method Detail |
|---|
public String getTitle()
throws Exception
getTitle in class XMLFileIndexingWriterException - If error reading XML.
public String getDescription()
throws Exception
getDescription in class XMLFileIndexingWriterException - If error reading XML.
public String[] getUrls()
throws Exception
getUrls in class XMLFileIndexingWriterException - If error
protected String[] _getIds()
throws Exception
_getIds in class XMLFileIndexingWriterException - If errorpublic String getDocType()
getDocType in interface DocWritergetDocType in class FileIndexingServiceWriterpublic String getReaderClass()
DocReader class that is used to read
this type of Document, which is "XMLDocReader".
getReaderClass in interface DocWritergetReaderClass in class FileIndexingServiceWriter
protected Date getWhatsNewDate()
throws Exception
getWhatsNewDate in class XMLFileIndexingWriterException - This method should throw and Exception with appropriate error message if an error
occurs.protected String getWhatsNewType()
getWhatsNewType in class XMLFileIndexingWriter
public void init(File source,
org.apache.lucene.document.Document existingDoc)
throws Exception
init in class XMLFileIndexingWritersource - The source file being indexedexistingDoc - An existing Document that currently resides in the index for the given resource, or
null if none was previously present
Exception - If an error occured during set-up.protected void destroy()
destroy in class FileIndexingServiceWriter
protected String getValidationReport()
throws Exception
getValidationReport in class FileIndexingServiceWriterException - If error in performing the validation.public boolean indexFullContentInDefaultAndStems()
indexFullContentInDefaultAndStems in class XMLFileIndexingWriter
protected final void addFields(org.apache.lucene.document.Document newDoc,
org.apache.lucene.document.Document existingDoc,
File sourceFile)
throws Exception
addFields in class XMLFileIndexingWriternewDoc - 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 presentsourceFile - The sourceFile that is being indexed.
Exception - If an error occurs
|
DLESE Tools v1.6.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||