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 instancedeepCopy
(ProductSearchFacetDistinctValue template) factory method to create a deep copy of ProductSearchFacetDistinctValue@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.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 String
getName()
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 ProductSearchFacetDistinctValuevoid
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
setIncludes
(String... includes) Specify which bucket keys the facets results should include.void
setIncludes
(List<String> includes) Specify which bucket keys the facets results should include.void
setLanguage
(String language) String value specifying linguistic and regional preferences using the IETF language tag format, as described in BCP 47.void
Specify whether to count Products (products
) or Product Variants (variants
).void
Maximum number of buckets to return.void
setMissing
(String missing) Default value to use if the specified field is not present on some Products.void
Name of the distinct facet to appear in the ProductSearchFacetResultBucket.void
Whether the facet must consider only the Products resulting from the search (query
) or all the Products (all
).void
Define how the buckets are sorted.static com.fasterxml.jackson.core.type.TypeReference<ProductSearchFacetDistinctValue>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor 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 search 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
field
is 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 search 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
field
is 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
-
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
-