Interface ProductTypeChangeIsSearchableAction
- All Superinterfaces:
ProductTypeUpdateAction
,ResourceUpdateAction<ProductTypeUpdateAction>
Following this update the Products are reindexed asynchronously to reflect this change on the search endpoint. When enabling search on an existing Attribute type definition, the constraint regarding the maximum size of a searchable Attribute will not be enforced. Instead, Product AttributeDefinitions exceeding this limit will be treated as not searchable and will not be available for full-text search.
Example to create an instance using the builder pattern
ProductTypeChangeIsSearchableAction productTypeChangeIsSearchableAction = ProductTypeChangeIsSearchableAction.builder()
.attributeName("{attributeName}")
.isSearchable(true)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for ProductTypeChangeIsSearchableAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductTypeChangeIsSearchableActionbuilder
(ProductTypeChangeIsSearchableAction template) create builder for ProductTypeChangeIsSearchableAction instancedeepCopy
(ProductTypeChangeIsSearchableAction template) factory method to create a deep copy of ProductTypeChangeIsSearchableAction@NotNull String
Name of the AttributeDefinition to update.@NotNull Boolean
Determines whether the Attribute's values can be used in full-text search queries, filters, and facets.of()
factory methodof
(ProductTypeChangeIsSearchableAction template) factory method to create a shallow copy ProductTypeChangeIsSearchableActionvoid
setAttributeName
(String attributeName) Name of the AttributeDefinition to update.void
setIsSearchable
(Boolean isSearchable) Determines whether the Attribute's values can be used in full-text search queries, filters, and facets.static com.fasterxml.jackson.core.type.TypeReference<ProductTypeChangeIsSearchableAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.product_type.ProductTypeUpdateAction
getAction, withProductTypeUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
CHANGE_IS_SEARCHABLE
discriminator value for ProductTypeChangeIsSearchableAction- See Also:
-
-
Method Details
-
getAttributeName
Name of the AttributeDefinition to update.
- Returns:
- attributeName
-
getIsSearchable
Determines whether the Attribute's values can be used in full-text search queries, filters, and facets. See AttributeDefinition for details.
- Returns:
- isSearchable
-
setAttributeName
Name of the AttributeDefinition to update.
- Parameters:
attributeName
- value to be set
-
setIsSearchable
Determines whether the Attribute's values can be used in full-text search queries, filters, and facets. See AttributeDefinition for details.
- Parameters:
isSearchable
- value to be set
-
of
factory method- Returns:
- instance of ProductTypeChangeIsSearchableAction
-
of
factory method to create a shallow copy ProductTypeChangeIsSearchableAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductTypeChangeIsSearchableAction deepCopy(@Nullable ProductTypeChangeIsSearchableAction template) factory method to create a deep copy of ProductTypeChangeIsSearchableAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductTypeChangeIsSearchableAction- Returns:
- builder
-
builder
static ProductTypeChangeIsSearchableActionBuilder builder(ProductTypeChangeIsSearchableAction template) create builder for ProductTypeChangeIsSearchableAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductTypeChangeIsSearchableAction
default <T> T withProductTypeChangeIsSearchableAction(Function<ProductTypeChangeIsSearchableAction, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<ProductTypeChangeIsSearchableAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-