Class SuggestionField
java.lang.Object
com.broadleafcommerce.search.api.domain.SuggestionField
Signifies a field to be used in a suggestion.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe field definition to provide suggestions for.Retrieves theFieldVariantto be used for this suggestion field.The variant type to use when building suggestions.inthashCode()voidsetFieldDefinition(FieldDefinition fieldDefinition) The field definition to provide suggestions for.voidsetVariantType(String variantType) The variant type to use when building suggestions.toString()
-
Constructor Details
-
SuggestionField
public SuggestionField()
-
-
Method Details
-
getFieldVariant
Retrieves theFieldVariantto be used for this suggestion field.- Returns:
- variant to be used for this suggestion field.
-
getFieldDefinition
The field definition to provide suggestions for. The most common scenario would be a product's name.- Returns:
- field definition to provide suggestions for
-
getVariantType
The variant type to use when building suggestions. If this is an autocomplete field, this should be a searchable field, tokenized in such a way that it returns useful autocomplete results.- Returns:
- variant type to use when building suggestions
-
setFieldDefinition
The field definition to provide suggestions for. The most common scenario would be a product's name.- Parameters:
fieldDefinition- field definition to provide suggestions for
-
setVariantType
The variant type to use when building suggestions. If this is an autocomplete field, this should be a searchable field, tokenized in such a way that it returns useful autocomplete results.- Parameters:
variantType- variant type to use when building suggestions
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-