Interface ProductSearchFacetDistinctValue
Example to create an instance using the builder pattern
ProductSearchFacetDistinctValue productSearchFacetDistinctValue = ProductSearchFacetDistinctValue.builder()
.name("{name}")
.field("{field}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProductSearchFacetDistinctValuebuilder(ProductSearchFacetDistinctValue template) create builder for ProductSearchFacetDistinctValue instancecopyDeep()deepCopy(ProductSearchFacetDistinctValue template) factory method to create a deep copy of ProductSearchFacetDistinctValue@NotNull StringgetField()The searchable Product field to facet on.If thefieldis not standard, this must be the Attribute type.@Valid SearchQueryAdditional filtering expression to apply to the facet result before calculating the facet.Specify which bucket keys the facets results should include.String value specifying linguistic and regional preferences using the IETF language tag format, as described in BCP 47.getLevel()Specify whether to count Products (products) or Product Variants (variants).getLimit()Maximum number of buckets to return.Default value to use if the specified field is not present on some Products.@NotNull StringgetName()Name of the distinct facet to appear in the ProductSearchFacetResultBucket.getScope()Whether the facet must consider only the Products resulting from the search (query) or all the Products (all).getSort()Define how the buckets are sorted.of()factory methodof(ProductSearchFacetDistinctValue template) factory method to create a shallow copy ProductSearchFacetDistinctValuevoidThe searchable Product field to facet on.voidsetFieldType(SearchFieldType fieldType) If thefieldis not standard, this must be the Attribute type.voidsetFilter(SearchQuery filter) Additional filtering expression to apply to the facet result before calculating the facet.voidsetIncludes(String... includes) Specify which bucket keys the facets results should include.voidsetIncludes(List<String> includes) Specify which bucket keys the facets results should include.voidsetLanguage(String language) String value specifying linguistic and regional preferences using the IETF language tag format, as described in BCP 47.voidSpecify whether to count Products (products) or Product Variants (variants).voidMaximum number of buckets to return.voidsetMissing(String missing) Default value to use if the specified field is not present on some Products.voidName of the distinct facet to appear in the ProductSearchFacetResultBucket.voidWhether the facet must consider only the Products resulting from the search (query) or all the Products (all).voidDefine how the buckets are sorted.static com.fasterxml.jackson.core.type.TypeReference<ProductSearchFacetDistinctValue>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map function
-
Method Details
-
getName
Name of the distinct facet to appear in the ProductSearchFacetResultBucket.
- 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 facet result before calculating the facet.
- Returns:
- filter
-
getLevel
ProductSearchFacetCountLevelEnum getLevel()Specify whether to count Products (
products) or Product Variants (variants).- Returns:
- level
-
getField
The searchable Product field to facet on.
- Returns:
- field
-
getIncludes
Specify which bucket keys the facets results should include.
- Returns:
- includes
-
getSort
Define how the buckets are sorted.
- Returns:
- sort
-
getLimit
Integer getLimit()Maximum number of buckets to return.
- Returns:
- limit
-
getLanguage
String getLanguage()String value specifying linguistic and regional preferences using the IETF language tag format, as described in BCP 47. The format combines language, script, and region using hyphen-separated subtags. For example:
en,en-US,zh-Hans-SG.- Returns:
- language
-
getFieldType
SearchFieldType getFieldType()If the
fieldis not standard, this must be the Attribute type.- Returns:
- fieldType
-
getMissing
String getMissing()Default value to use if the specified field is not present on some Products.
- Returns:
- missing
-
setName
Name of the distinct facet to appear in the ProductSearchFacetResultBucket.
- 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 facet result before calculating the facet.
- Parameters:
filter- value to be set
-
setLevel
Specify whether to count Products (
products) or Product Variants (variants).- Parameters:
level- value to be set
-
setField
The searchable Product field to facet on.
- Parameters:
field- value to be set
-
setIncludes
Specify which bucket keys the facets results should include.
- Parameters:
includes- values to be set
-
setIncludes
Specify which bucket keys the facets results should include.
- Parameters:
includes- values to be set
-
setSort
Define how the buckets are sorted.
- Parameters:
sort- value to be set
-
setLimit
Maximum number of buckets to return.
- Parameters:
limit- value to be set
-
setLanguage
String value specifying linguistic and regional preferences using the IETF language tag format, as described in BCP 47. The format combines language, script, and region using hyphen-separated subtags. For example:
en,en-US,zh-Hans-SG.- Parameters:
language- value to be set
-
setFieldType
If the
fieldis not standard, this must be the Attribute type.- Parameters:
fieldType- value to be set
-
setMissing
Default value to use if the specified field is not present on some Products.
- Parameters:
missing- value to be set
-
of
factory method- Returns:
- instance of ProductSearchFacetDistinctValue
-
of
factory method to create a shallow copy ProductSearchFacetDistinctValue- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ProductSearchFacetDistinctValue copyDeep() -
deepCopy
@Nullable static ProductSearchFacetDistinctValue deepCopy(@Nullable ProductSearchFacetDistinctValue template) factory method to create a deep copy of ProductSearchFacetDistinctValue- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductSearchFacetDistinctValue- Returns:
- builder
-
builder
create builder for ProductSearchFacetDistinctValue instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withProductSearchFacetDistinctValue
default <T> T withProductSearchFacetDistinctValue(Function<ProductSearchFacetDistinctValue, 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<ProductSearchFacetDistinctValue> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-