org.kuali.ole.docstore.service
Class DocumentIndexer

java.lang.Object
  extended by org.kuali.ole.docstore.service.DocumentIndexer

public class DocumentIndexer
extends Object

Class for Indexing Documents.

Author:
Rajesh Chowdary K

Constructor Summary
DocumentIndexer()
           
 
Method Summary
 void indexDocument(RequestDocument reqDoc)
          Method to index Bib And Linked Instance Documents
 void indexDocuments(List<RequestDocument> reqDocs)
          Method to index Bib And Linked Instance Documents for a given list.
 void indexDocumentsForBulk(List<RequestDocument> reqDocs, boolean isCommit)
          Method to index Documents For Bulk Process.
 void optimizeSolr()
          Method to optimizeSolr
 void optimizeSolr(Boolean waitFlush, Boolean waitSearcher)
          Method to optimizeSolr
 void rollbackIndexedData(List<RequestDocument> requestDocuments)
          Method to roll back Indexed Data for a given Request Docuemnts.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentIndexer

public DocumentIndexer()
Method Detail

indexDocuments

public void indexDocuments(List<RequestDocument> reqDocs)
                    throws Exception
Method to index Bib And Linked Instance Documents for a given list.

Parameters:
reqDocs -
Throws:
Exception

indexDocumentsForBulk

public void indexDocumentsForBulk(List<RequestDocument> reqDocs,
                                  boolean isCommit)
                           throws Exception
Method to index Documents For Bulk Process.

Parameters:
reqDocs -
Throws:
Exception

indexDocument

public void indexDocument(RequestDocument reqDoc)
                   throws Exception
Method to index Bib And Linked Instance Documents

Parameters:
reqDoc -
Throws:
Exception

rollbackIndexedData

public void rollbackIndexedData(List<RequestDocument> requestDocuments)
Method to roll back Indexed Data for a given Request Docuemnts.

Parameters:
requestDocuments -

optimizeSolr

public void optimizeSolr()
                  throws Exception
Method to optimizeSolr

Throws:
Exception

optimizeSolr

public void optimizeSolr(Boolean waitFlush,
                         Boolean waitSearcher)
                  throws Exception
Method to optimizeSolr

Throws:
Exception


Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.