Interface IndexField
- All Superinterfaces:
org.broadleafcommerce.common.copy.MultiTenantCloneable<IndexField>,Serializable
- All Known Implementing Classes:
IndexFieldImpl
public interface IndexField
extends Serializable, org.broadleafcommerce.common.copy.MultiTenantCloneable<IndexField>
Represents a field that gets stored in the search index
- Author:
- Chad Harchar (charchar)
-
Method Summary
Modifier and TypeMethodDescriptiongetField()Gets the field for this search fieldGets the searchable field types for this search fieldgetId()Gets the id for this search fieldWhether or not the user should see results for this field when typing in search terms in the omnibox, or if this is just a field stored in the index (like margin or sorts)voidSets the field for this search fieldvoidsetFieldTypes(List<IndexFieldType> fieldTypes) Sets the searchable field types for this search fieldvoidSets the id for this search fieldvoidsetSearchable(Boolean searchable) Methods inherited from interface org.broadleafcommerce.common.copy.MultiTenantCloneable
createOrRetrieveCopyInstance
-
Method Details
-
getId
Long getId()Gets the id for this search field- Returns:
-
setId
Sets the id for this search field- Parameters:
id-
-
getSearchable
Boolean getSearchable()Whether or not the user should see results for this field when typing in search terms in the omnibox, or if this is just a field stored in the index (like margin or sorts) -
setSearchable
-
getField
Field getField()Gets the field for this search field- Returns:
-
setField
Sets the field for this search field- Parameters:
field-
-
getFieldTypes
List<IndexFieldType> getFieldTypes()Gets the searchable field types for this search field- Returns:
-
setFieldTypes
Sets the searchable field types for this search field- Parameters:
fieldTypes-
-