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 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 the UpdateRequest. 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 the UpdateRequest. 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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object