Skip navigation links

Oracle Secure Enterprise Search Java API Reference
10g Release 1 (10.1.8.2)

E10465-01


oracle.search.sdk.crawler
Interface DataSourceService


public interface DataSourceService

DataSourceService is an interface used by a crawler plugin 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.
 void indexNow()
          start indexing as soon as possible on current set of submitted documents.
 boolean isExist(String displayURL)
          Check whether the given URL exist in the current data source or not.
 void registerGlobalLOV(LovInfo lovNode)
          register the attribute list of values

 

Method Detail

delete

public 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

deleteAll

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

deleteAll

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

getDocumentAttributes

public DocumentMetadata getDocumentAttributes(String displayUrl)
Retrieve the attribute data of an existing document. Return null if this URL does not exist in the data source
Parameters:
displayUrl - display URL of this document
Returns:
document attributes stored in DocumentMetadata object

isExist

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

registerGlobalLOV

public void registerGlobalLOV(LovInfo lovNode)
register the attribute list of values

indexNow

public void indexNow()
start indexing as soon as possible on current set of submitted documents. This is a non-blocking call. If indexing is already in progress then the requested indexing will be started as soon as current indexing is done.

Skip navigation links

Oracle Secure Enterprise Search Java API Reference
10g Release 1 (10.1.8.2)

E10465-01


Copyright © 2006, 2007, Oracle. All rights reserved.