Class SolrSearchBoostProperties

java.lang.Object
com.broadleafcommerce.search.provider.solr.autoconfiguration.SolrSearchBoostProperties

@ConfigurationProperties(prefix="broadleaf.search.solr.boost") public class SolrSearchBoostProperties extends Object
Properties for Solr search boosting.
  • Constructor Details

    • SolrSearchBoostProperties

      public SolrSearchBoostProperties()
  • Method Details

    • getWordBoost

      public Double getWordBoost()
      Boost which should be applied on word query type matches.
      Returns:
      amount to boost word query type matches
    • getPhraseBoost

      public Double getPhraseBoost()
      Boost which should be applied on phrase query type matches.
      Returns:
      amount to boost phrase query type matches
    • getPhraseSlop

      public int getPhraseSlop()
      Slop which should be applied on phrase query type matches.

      Slop describes the number of terms allowed between words from the query and still recognize a match.

      Returns:
      amount of slop for phrase query type matches
    • getPhraseExactBoost

      public Double getPhraseExactBoost()
      Boost which should be applied on exact phrase query type matches.
      Returns:
      amount to exact phrase word query type matches
    • setWordBoost

      public void setWordBoost(Double wordBoost)
      Boost which should be applied on word query type matches.
      Parameters:
      wordBoost - amount to boost word query type matches
    • setPhraseBoost

      public void setPhraseBoost(Double phraseBoost)
      Boost which should be applied on phrase query type matches.
      Parameters:
      phraseBoost - amount to boost phrase query type matches
    • setPhraseSlop

      public void setPhraseSlop(int phraseSlop)
      Slop which should be applied on phrase query type matches.

      Slop describes the number of terms allowed between words from the query and still recognize a match.

      Parameters:
      phraseSlop - amount of slop for phrase query type matches
    • setPhraseExactBoost

      public void setPhraseExactBoost(Double phraseExactBoost)
      Boost which should be applied on exact phrase query type matches.
      Parameters:
      phraseExactBoost - amount to boost exact phrase query type matches
    • 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