Class BroadleafSolrProperties.IndexProperties
java.lang.Object
com.broadleafcommerce.search.provider.solr.autoconfigure.BroadleafSolrProperties.IndexProperties
- Enclosing class:
- BroadleafSolrProperties
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
int
Amount of time to commit within.long
Amount of milliseconds to pause after deleting of the Solr collections.int
Max number of times to retry if an error occurs in indexing.org.apache.solr.client.solrj.SolrRequest.METHOD
Default HTTP method used for submit updates to Solr using theUpdateRequest
.long
Amount of time to pause if a retry occurs due to an exception.int
hashCode()
void
setCommitWithinTime
(int commitWithinTime) Amount of time to commit within.void
setDeleteCollectionPauseTimeMillis
(long deleteCollectionPauseTimeMillis) Amount of milliseconds to pause after deleting of the Solr collections.void
setMaxRetries
(int maxRetries) Max number of times to retry if an error occurs in indexing.void
setMethod
(org.apache.solr.client.solrj.SolrRequest.METHOD method) Default HTTP method used for submit updates to Solr using theUpdateRequest
.void
setPauseTime
(long pauseTime) Amount of time to pause if a retry occurs due to an exception.toString()
-
Constructor Details
-
IndexProperties
public IndexProperties()
-
-
Method Details
-
getMethod
public org.apache.solr.client.solrj.SolrRequest.METHOD getMethod()Default HTTP method used for submit updates to Solr using theUpdateRequest
. We use POST as the default to allow for larger amounts of batched data. Note: Solr's default is to use GET. This method must return a non-null value.- Returns:
- Default HTTP method used for submit updates to Solr
-
getMaxRetries
public int getMaxRetries()Max number of times to retry if an error occurs in indexing. Values less than 1 will result in no retries.- Returns:
- Max number of times to retry if an error occurs in indexing
-
getPauseTime
public long getPauseTime()Amount of time to pause if a retry occurs due to an exception. Values less than 1 will result in no pause.- Returns:
- Amount of time to pause if a retry occurs due to an exception
-
getCommitWithinTime
public int getCommitWithinTime()Amount of time to commit within.- Returns:
- Amount of time to commit within
-
getDeleteCollectionPauseTimeMillis
public long getDeleteCollectionPauseTimeMillis()Amount of milliseconds to pause after deleting of the Solr collections.- Returns:
- Amount of milliseconds to pause after deleting of the Solr collections.
-
setMethod
public void setMethod(org.apache.solr.client.solrj.SolrRequest.METHOD method) Default HTTP method used for submit updates to Solr using theUpdateRequest
. We use POST as the default to allow for larger amounts of batched data. Note: Solr's default is to use GET. This method must return a non-null value.- Parameters:
method
- Default HTTP method used for submit updates to Solr
-
setMaxRetries
public void setMaxRetries(int maxRetries) Max number of times to retry if an error occurs in indexing. Values less than 1 will result in no retries.- Parameters:
maxRetries
- Max number of times to retry if an error occurs in indexing
-
setPauseTime
public void setPauseTime(long pauseTime) Amount of time to pause if a retry occurs due to an exception. Values less than 1 will result in no pause.- Parameters:
pauseTime
- Amount of time to pause if a retry occurs due to an exception
-
setCommitWithinTime
public void setCommitWithinTime(int commitWithinTime) Amount of time to commit within.- Parameters:
commitWithinTime
- Amount of time to commit within
-
setDeleteCollectionPauseTimeMillis
public void setDeleteCollectionPauseTimeMillis(long deleteCollectionPauseTimeMillis) Amount of milliseconds to pause after deleting of the Solr collections.- Parameters:
deleteCollectionPauseTimeMillis
- Amount of milliseconds to pause after deleting of the Solr collections
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-