Interface MCRSolrIndexHandler

All Known Implementing Classes:
MCRSolrAbstractIndexHandler, MCRSolrAbstractStreamIndexHandler, MCRSolrFileIndexHandler, MCRSolrFilesIndexHandler, MCRSolrInputDocumentHandler, MCRSolrInputDocumentsHandler, MCRSolrMCRContentIndexHandler, MCRSolrMCRContentMapIndexHandler, MCRSolrOptimizeIndexHandler

public interface MCRSolrIndexHandler
General interface to handle a single solr index process.
Author:
Matthias Eichner
  • Method Details

    • index

      void index() throws IOException, org.apache.solr.client.solrj.SolrServerException
      Commits something to solr.
      Throws:
      IOException
      org.apache.solr.client.solrj.SolrServerException
    • getSubHandlers

      List<MCRSolrIndexHandler> getSubHandlers()
      Returns a list of index handlers which should be executed after the default index process. Return an empty list if no sub handlers are defined.
      Returns:
      list of MCRSolrIndexHandler
    • setCommitWithin

      void setCommitWithin(int commitWithin)
      Time in milliseconds solr should index the stream. -1 by default, says that solr decide when to commit.
    • getCommitWithin

      int getCommitWithin()
    • getSolrClient

      org.apache.solr.client.solrj.SolrClient getSolrClient()
    • setSolrServer

      void setSolrServer(org.apache.solr.client.solrj.SolrClient solrClient)
    • getStatistic

      MCRSolrIndexStatistic getStatistic()
    • getDocuments

      int getDocuments()