Class SuggestionField
java.lang.Object
com.broadleafcommerce.search.api.domain.SuggestionField
Signifies a field to be used in a suggestion.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The field definition to provide suggestions for.Retrieves theFieldVariant
to be used for this suggestion field.The variant type to use when building suggestions.int
hashCode()
void
setFieldDefinition
(FieldDefinition fieldDefinition) The field definition to provide suggestions for.void
setVariantType
(String variantType) The variant type to use when building suggestions.toString()
-
Constructor Details
-
SuggestionField
public SuggestionField()
-
-
Method Details
-
getFieldVariant
Retrieves theFieldVariant
to 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
-