|
Oracle Secure Enterprise Search Java API Reference 11g Release 1 (11.1.2.0.0) E14433-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DocumentService
DocumentService is an interface used by a document service plug-in to submit document attributes and document contents to the crawler.
Field Summary | |
---|---|
static int |
STATUS_ATTRIBUTE_CHANGE Attribute has been modified. |
static int |
STATUS_CONTENT_CHANGE Document content has been modified. |
static int |
STATUS_LANGUAGE_CHANGE Document language has changed. |
static int |
STATUS_NO_CHANGE No change to the document attribute, content, and index status. |
static int |
STATUS_NO_INDEX Do not index this document. |
Method Summary | |
---|---|
void |
close() Shuts down the document service plug-in. |
void |
init() Initialize the document service plug-in |
int |
process(DocumentContainer doc) Processes the document. |
Field Detail |
---|
static final int STATUS_NO_CHANGE
static final int STATUS_NO_INDEX
static final int STATUS_ATTRIBUTE_CHANGE
static final int STATUS_CONTENT_CHANGE
static final int STATUS_LANGUAGE_CHANGE
Method Detail |
---|
void init() throws DocumentServiceException
DocumentServiceException
int process(DocumentContainer doc) throws DocumentServiceException
doc
provides access to the document content and attributes through a DocumentContainer. The content is in HTML format. For binary documents, access to the original content is possible through DocumentContainer.getBinaryDocumentStream. Document attributes are accessed through a DocumentMetadata object from doc
. This function returns an integer with the corresponding action flag for an index, attribute, language, and/or content change. For example, a return value of (STATUS_ATTRIBUTE_CHANGE | STATUS_CONTENT_CHANGE) means that both the document content and the attribute changed. For a content change, use DocumentContainer.setDocument(Reader doc) to returns the new content. For an attribute change, use DocumentMetadata. Any document property like display URL, access URL, content type, crawl depth, source hierarchy, last modified date, ACLInfo, and content length cannot be changed. The crawler stops if a fatal DocumentServiceException or Uncaught Exception is thrown.doc
- DocumentContainerDocumentServiceException
- If unable to process the document. This stops the crawler. Any uncaught exception is treated as fatal error.void close() throws DocumentServiceException
DocumentServiceException
- If unable to close the plug-in.
|
Oracle Secure Enterprise Search Java API Reference 11g Release 1 (11.1.2.0.0) E14433-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |