public abstract class GlobalSolrFullReIndexOperation extends Object implements SolrIndexOperation
SolrContext#getReindexServer() and then at the end, the
Solr cores are swapped. Prior to building the index, all documents from SolrContext#getReindexServer() are
deleted.SolrHelperService#swapActiveCores()}| Modifier and Type | Field and Description |
|---|---|
protected boolean |
errorOnConcurrentReIndex |
protected SolrIndexService |
indexService |
protected static boolean |
IS_LOCKED |
protected static Object |
LOCK_OBJECT |
protected SolrHelperService |
shs |
protected SolrConfiguration |
solrConfiguration |
| Constructor and Description |
|---|
GlobalSolrFullReIndexOperation(SolrIndexService indexService,
SolrConfiguration solrConfiguration,
SolrHelperService shs,
boolean errorOnConcurrentReindex) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterBuildPage()
Executes after building each page, this is where any filters or cleanup for building can be taken care of
|
void |
afterCountIndexables()
Executes after the count, this is where any filters or cleanup for counting can be taken care of
|
void |
afterReadIndexables()
Executes after the read, this is where any filters or cleanup for reading can be taken care of
|
void |
beforeBuildPage()
Executes before building each page, this is where any filters or setup for building can be taken care of
|
void |
beforeCountIndexables()
Executes before the count, this is where any filters or setup for counting can be taken care of
|
void |
beforeReadIndexables()
Executes before the read, this is where any filters or setup for reading can be taken care of
|
org.apache.solr.client.solrj.SolrClient |
getSolrServerForIndexing()
Which
SolrClient the index should be built on |
boolean |
obtainLock()
Grab some sort of lock so that nothing else can index items at the same time
|
void |
releaseLock()
If a lock was obtained in
SolrIndexOperation.obtainLock() this releases it |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuildPage, countIndexables, readIndexablesprotected static final Object LOCK_OBJECT
protected static boolean IS_LOCKED
protected boolean errorOnConcurrentReIndex
protected SolrConfiguration solrConfiguration
protected SolrIndexService indexService
protected SolrHelperService shs
public GlobalSolrFullReIndexOperation(SolrIndexService indexService, SolrConfiguration solrConfiguration, SolrHelperService shs, boolean errorOnConcurrentReindex)
public boolean obtainLock()
SolrIndexOperationobtainLock in interface SolrIndexOperationpublic void releaseLock()
SolrIndexOperationSolrIndexOperation.obtainLock() this releases itreleaseLock in interface SolrIndexOperationpublic org.apache.solr.client.solrj.SolrClient getSolrServerForIndexing()
SolrIndexOperationSolrClient the index should be built ongetSolrServerForIndexing in interface SolrIndexOperationpublic void beforeCountIndexables()
SolrIndexOperationbeforeCountIndexables in interface SolrIndexOperationpublic void afterCountIndexables()
SolrIndexOperationafterCountIndexables in interface SolrIndexOperationpublic void beforeReadIndexables()
SolrIndexOperationbeforeReadIndexables in interface SolrIndexOperationpublic void afterReadIndexables()
SolrIndexOperationafterReadIndexables in interface SolrIndexOperationpublic void beforeBuildPage()
SolrIndexOperationbeforeBuildPage in interface SolrIndexOperationpublic void afterBuildPage()
SolrIndexOperationafterBuildPage in interface SolrIndexOperationCopyright © 2019. All rights reserved.