Class BroadleafSolrProperties.IndexProperties
- java.lang.Object
-
- com.broadleafcommerce.search.provider.solr.autoconfigure.BroadleafSolrProperties.IndexProperties
-
- Enclosing class:
- BroadleafSolrProperties
public static class BroadleafSolrProperties.IndexProperties extends Object
-
-
Constructor Summary
Constructors Constructor Description IndexProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)intgetCommitWithinTime()Amount of time to commit within.longgetDeleteCollectionPauseTimeMillis()Amount of milliseconds to pause after deleting of the Solr collections.intgetMaxRetries()Max number of times to retry if an error occurs in indexing.org.apache.solr.client.solrj.SolrRequest.METHODgetMethod()Default HTTP method used for submit updates to Solr using theUpdateRequest.longgetPauseTime()Amount of time to pause if a retry occurs due to an exception.inthashCode()voidsetCommitWithinTime(int commitWithinTime)Amount of time to commit within.voidsetDeleteCollectionPauseTimeMillis(long deleteCollectionPauseTimeMillis)Amount of milliseconds to pause after deleting of the Solr collections.voidsetMaxRetries(int maxRetries)Max number of times to retry if an error occurs in indexing.voidsetMethod(org.apache.solr.client.solrj.SolrRequest.METHOD method)Default HTTP method used for submit updates to Solr using theUpdateRequest.voidsetPauseTime(long pauseTime)Amount of time to pause if a retry occurs due to an exception.StringtoString()
-
-
-
Method Detail
-
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
-
canEqual
protected boolean canEqual(Object other)
-
-