Skip navigation links

Oracle Secure Enterprise Search Java API Reference
11g Release 1 (11.1.2.0.0)

E14433-02


oracle.search.sdk.crawler
Interface DataSourceService


public interface DataSourceService

DataSourceService is an interface used by a crawler plug-in to manage the data source


Method Summary
 void delete(String displayURL)
          Delete the URL identified by the display URL.
 void deleteAll()
          Delete all the documents from the data source.
 void deleteAll(int statusCode)
          Delete documents with the specified status code.
 DocumentMetadata getDocumentAttributes(String displayUrl)
          Retrieve the attribute data of an existing document.
 Properties getSourceProperties()
          Determine the data source properties.
 String getSourceProperty(String key)
          Gets specific information about this data source.
 void indexNow()
           
 boolean isExist(String displayURL)
          Check whether the given URL exist in the current data source.
 void regexpDelete(String regexp)
          Delete the set of URLs identified by the given Oracle regular expression.
 void registerGlobalLOV(LovInfo lovNode)
           

 

Method Detail

getSourceProperty

String getSourceProperty(String key)
Gets specific information about this data source.
Parameters:
key - name of the data source property.
source.name - name of this data source
source.id - ID of this data source
source.type - name of this data source type
source.uniqueid - data source ID string that is unique across SES instances

getSourceProperties

Properties getSourceProperties()
Determine the data source properties. The current set of data source properties for use by the getSourceProperty() method is returned as a Properties object.
Returns:
The data source properties

delete

void delete(String displayURL)
Delete the URL identified by the display URL. This removes it from the index if it has been indexed.
Parameters:
displayURL - display URL

regexpDelete

void regexpDelete(String regexp)
Delete the set of URLs identified by the given Oracle regular expression. This removes it from the index if it has been indexed.
Parameters:
regexp - an Oracle regular expression

deleteAll

void deleteAll()
Delete all the documents from the data source.

deleteAll

void deleteAll(int statusCode)
Delete documents with the specified status code.
Parameters:
statusCode - document status code

getDocumentAttributes

DocumentMetadata getDocumentAttributes(String displayUrl)
Retrieve the attribute data of an existing document.
Parameters:
displayUrl - - display URL of this document

isExist

boolean isExist(String displayURL)
Check whether the given URL exist in the current data source. This URL may or may not be in the queue.
Parameters:
displayURL - display URL of this document
Returns:
true if this document exist in the data source, false if not

registerGlobalLOV

void registerGlobalLOV(LovInfo lovNode)

indexNow

void indexNow()

Skip navigation links

Oracle Secure Enterprise Search Java API Reference
11g Release 1 (11.1.2.0.0)

E14433-02


Copyright © 2006, 2010, Oracle and/or its affiliates. All rights reserved.