Package org.mycore.solr.index
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 Summary
Modifier and TypeMethodDescriptionint
int
org.apache.solr.client.solrj.SolrClient
Returns a list of index handlers which should be executed after the default index process.void
index()
Commits something to solr.void
setCommitWithin
(int commitWithin) Time in milliseconds solr should index the streamvoid
setSolrServer
(org.apache.solr.client.solrj.SolrClient solrClient)
-
Method Details
-
index
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()
-