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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Boost which should be applied on phrase query type matches.Boost which should be applied on exact phrase query type matches.int
Slop which should be applied on phrase query type matches.Boost which should be applied on word query type matches.int
hashCode()
void
setPhraseBoost
(Double phraseBoost) Boost which should be applied on phrase query type matches.void
setPhraseExactBoost
(Double phraseExactBoost) Boost which should be applied on exact phrase query type matches.void
setPhraseSlop
(int phraseSlop) Slop which should be applied on phrase query type matches.void
setWordBoost
(Double wordBoost) Boost which should be applied on word query type matches.toString()
-
Constructor Details
-
SolrSearchBoostProperties
public SolrSearchBoostProperties()
-
-
Method Details
-
getWordBoost
Boost which should be applied on word query type matches.- Returns:
- amount to boost word query type matches
-
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
Boost which should be applied on exact phrase query type matches.- Returns:
- amount to exact phrase word query type matches
-
setWordBoost
Boost which should be applied on word query type matches.- Parameters:
wordBoost
- amount to boost word query type matches
-
setPhraseBoost
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
Boost which should be applied on exact phrase query type matches.- Parameters:
phraseExactBoost
- amount to boost exact phrase query type matches
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-