Class SynonymProperties
java.lang.Object
com.broadleafcommerce.search.core.service.SynonymProperties
@ConfigurationProperties("broadleaf.search.feature.synonym")
public class SynonymProperties
extends Object
Properties indicating what synonyms to load on application startup. This will only execute if
there is no existing synonym data in Solr.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe synonyms to load on startup.The managed languages that are available in the search engine for synonym management.Restricted characters that are not allowed in synonyms.inthashCode()booleanSolr's managed synonym API does not support case-insensitivity.voidsetCaseSensitive(boolean caseSensitive) Solr's managed synonym API does not support case-insensitivity.voidThe synonyms to load on startup.voidsetManagedLanguages(List<ManagedLanguage> managedLanguages) The managed languages that are available in the search engine for synonym management.voidsetRestrictedCharacters(Set<Character> restrictedCharacters) Restricted characters that are not allowed in synonyms.toString()
-
Constructor Details
-
SynonymProperties
public SynonymProperties()
-
-
Method Details
-
getConfig
The synonyms to load on startup. -
getManagedLanguages
The managed languages that are available in the search engine for synonym management. -
getRestrictedCharacters
Restricted characters that are not allowed in synonyms. By default, this is all URL reserved characters.The primary reason for this is that there is a bug in the Solr managed resource API where it does not properly escape reserved characters. So if the synonym is "A/B", for example, it is impossible to manage that synonym through the API. If/when this bug is fixed, these properties can be removed.
-
isCaseSensitive
public boolean isCaseSensitive()Solr's managed synonym API does not support case-insensitivity. By default, when synonyms are saved they are lower-cased. Setting this value to true disables that behavior and saves synonyms exactly as they are provided. -
setConfig
The synonyms to load on startup. -
setManagedLanguages
The managed languages that are available in the search engine for synonym management. -
setRestrictedCharacters
Restricted characters that are not allowed in synonyms. By default, this is all URL reserved characters.The primary reason for this is that there is a bug in the Solr managed resource API where it does not properly escape reserved characters. So if the synonym is "A/B", for example, it is impossible to manage that synonym through the API. If/when this bug is fixed, these properties can be removed.
-
setCaseSensitive
public void setCaseSensitive(boolean caseSensitive) Solr's managed synonym API does not support case-insensitivity. By default, when synonyms are saved they are lower-cased. Setting this value to true disables that behavior and saves synonyms exactly as they are provided. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-