|
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.NewsOppsFileIndexingWriter
public class NewsOppsFileIndexingWriter
Used to write a Lucene Document for a DLESE news-opps XML record. The
reader for this type of Document is NewsOppsDocReader.
XMLDocReader,
RecordDataService,
FileIndexingServiceWriter| Field Summary | |
|---|---|
static String |
FIELD_NS
The News Opps NS |
| Constructor Summary | |
|---|---|
NewsOppsFileIndexingWriter()
Create a NewsOppsFileIndexingWriter. |
|
| 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 news-opps Document. |
protected void |
destroy()
This method is called at the conclusion of processing and may be used for tear-down. |
String |
getDescription()
Return a description for the document being indexed, or null if none applies. |
String |
getDocType()
Gets the docType attribute of the NewsOppsFileIndexingWriter, which is 'news_opps.' |
String |
getReaderClass()
Gets the name of the concrete DocReader class that is used to read
this type of Document, which is "NewsOppsDocReader". |
String |
getTitle()
Return a title for the document being indexed, or null if none applies. |
String[] |
getUrls()
Return the URL(s) to the resource being indexed, or null if none apply. |
protected String |
getValidationReport()
Gets a report detailing any errors found in the XML validation of the news-opps record, or null if no error was found. |
protected Date |
getWhatsNewDate()
Returns the date used to determine "What's new" in the library, which is the post date. |
protected String |
getWhatsNewType()
Returns 'newsopps'. |
boolean |
indexFullContentInDefaultAndStems()
Default and stems fields handled here, so do not index full content. |
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 |
| Field Detail |
|---|
public static final String FIELD_NS
| Constructor Detail |
|---|
public NewsOppsFileIndexingWriter()
| Method Detail |
|---|
protected String[] _getIds()
throws Exception
_getIds in class XMLFileIndexingWriterException - If error
public String[] getUrls()
throws Exception
XMLFileIndexingWriter
getUrls in class XMLFileIndexingWriterException - This method should throw and Exception with appropriate error message if an error
occurs.
public String getDescription()
throws Exception
XMLFileIndexingWriter
getDescription in class XMLFileIndexingWriterException - This method should throw and Exception with appropriate error message if an error
occurs.
public String getTitle()
throws Exception
XMLFileIndexingWriter
getTitle in class XMLFileIndexingWriterException - This method should throw and Exception with appropriate error message if an error
occurs.public String getDocType()
getDocType in interface DocWritergetDocType in class FileIndexingServiceWriterpublic String getReaderClass()
DocReader class that is used to read
this type of Document, which is "NewsOppsDocReader".
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 | ||||||||