Interface ProductSearchFacetStatsValue
Example to create an instance using the builder pattern
ProductSearchFacetStatsValue productSearchFacetStatsValue = ProductSearchFacetStatsValue.builder()
.name("{name}")
.field("{field}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductSearchFacetStatsValuebuilder
(ProductSearchFacetStatsValue template) create builder for ProductSearchFacetStatsValue instancecopyDeep()
static ProductSearchFacetStatsValue
deepCopy
(ProductSearchFacetStatsValue template) factory method to create a deep copy of ProductSearchFacetStatsValue@NotNull String
getField()
The searchable Product field to facet on.If thefield
is not standard, this must be the Attribute type.@Valid SearchQuery
Additional filtering expression to apply to the search result before calculating the facet.@NotNull String
getName()
Name of the stats facet to appear in the ProductSearchFacetResultStats.getScope()
Whether the facet must consider only the Products resulting from the search (query
) or all the Products (all
).static ProductSearchFacetStatsValue
of()
factory methodstatic ProductSearchFacetStatsValue
of
(ProductSearchFacetStatsValue template) factory method to create a shallow copy ProductSearchFacetStatsValuevoid
The searchable Product field to facet on.void
setFieldType
(SearchFieldType fieldType) If thefield
is not standard, this must be the Attribute type.void
setFilter
(SearchQuery filter) Additional filtering expression to apply to the search result before calculating the facet.void
Name of the stats facet to appear in the ProductSearchFacetResultStats.void
Whether the facet must consider only the Products resulting from the search (query
) or all the Products (all
).static com.fasterxml.jackson.core.type.TypeReference<ProductSearchFacetStatsValue>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map function
-
Method Details
-
getName
Name of the stats facet to appear in the ProductSearchFacetResultStats.
- Returns:
- name
-
getScope
ProductSearchFacetScopeEnum getScope()Whether the facet must consider only the Products resulting from the search (
query
) or all the Products (all
).- Returns:
- scope
-
getFilter
Additional filtering expression to apply to the search result before calculating the facet.
- Returns:
- filter
-
getField
The searchable Product field to facet on.
- Returns:
- field
-
getFieldType
SearchFieldType getFieldType()If the
field
is not standard, this must be the Attribute type.- Returns:
- fieldType
-
setName
Name of the stats facet to appear in the ProductSearchFacetResultStats.
- Parameters:
name
- value to be set
-
setScope
Whether the facet must consider only the Products resulting from the search (
query
) or all the Products (all
).- Parameters:
scope
- value to be set
-
setFilter
Additional filtering expression to apply to the search result before calculating the facet.
- Parameters:
filter
- value to be set
-
setField
The searchable Product field to facet on.
- Parameters:
field
- value to be set
-
setFieldType
If the
field
is not standard, this must be the Attribute type.- Parameters:
fieldType
- value to be set
-
of
factory method- Returns:
- instance of ProductSearchFacetStatsValue
-
of
factory method to create a shallow copy ProductSearchFacetStatsValue- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
ProductSearchFacetStatsValue copyDeep() -
deepCopy
@Nullable static ProductSearchFacetStatsValue deepCopy(@Nullable ProductSearchFacetStatsValue template) factory method to create a deep copy of ProductSearchFacetStatsValue- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductSearchFacetStatsValue- Returns:
- builder
-
builder
create builder for ProductSearchFacetStatsValue instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductSearchFacetStatsValue
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-