Esri Geoportal Server
1.2.2

com.esri.gpt.catalog.lucene
Interface LuceneIndexObserver


public interface LuceneIndexObserver

Lucene index observer.


Method Summary
 void init(Properties params)
          Called upon creation.
 void onDocumentDelete(String[] uuids)
          Called BEFORE index document is being deleted.
 void onDocumentDeleted(String[] uuids)
          Called AFTER index document has been deleted.
 void onDocumentUpdate(org.apache.lucene.document.Document document, String uuid)
          Called BEFORE index document is being updated.
 void onDocumentUpdated(org.apache.lucene.document.Document document, String uuid)
          Called AFTER index document has been updated.
 

Method Detail

init

void init(Properties params)
Called upon creation.

Parameters:
params - parameters

onDocumentUpdate

void onDocumentUpdate(org.apache.lucene.document.Document document,
                      String uuid)
                      throws Exception
Called BEFORE index document is being updated.

Parameters:
document - Lucene document
uuid - document UUID
Throws:
Exception - if processing notification fails

onDocumentUpdated

void onDocumentUpdated(org.apache.lucene.document.Document document,
                       String uuid)
                       throws Exception
Called AFTER index document has been updated.

Parameters:
document - Lucene document
uuid - document UUID
Throws:
Exception - if processing notification fails

onDocumentDelete

void onDocumentDelete(String[] uuids)
                      throws Exception
Called BEFORE index document is being deleted.

Parameters:
uuids - UUIDs of documents to delete
Throws:
Exception - if processing notification fails

onDocumentDeleted

void onDocumentDeleted(String[] uuids)
                       throws Exception
Called AFTER index document has been deleted.

Parameters:
uuids - UUIDs of documents to delete
Throws:
Exception - if processing notification fails

Esri Geoportal Server
1.2.2

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.