Interface ProductSearchFacetRangesValue
Example to create an instance using the builder pattern
ProductSearchFacetRangesValue productSearchFacetRangesValue = ProductSearchFacetRangesValue.builder()
.name("{name}")
.field("{field}")
.plusRanges(rangesBuilder -> rangesBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductSearchFacetRangesValuebuilder
(ProductSearchFacetRangesValue template) create builder for ProductSearchFacetRangesValue instancedeepCopy
(ProductSearchFacetRangesValue template) factory method to create a deep copy of ProductSearchFacetRangesValue@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.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
).@NotNull String
getName()
Name of the ranges facet to appear in the ProductSearchFacetResultBucket.@NotNull @Valid List<ProductSearchFacetRangesFacetRange>
Define ranges for the facet.getScope()
Whether the facet must consider only the Products resulting from the search (query
) or all the Products (all
).of()
factory methodof
(ProductSearchFacetRangesValue template) factory method to create a shallow copy ProductSearchFacetRangesValuevoid
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
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
Name of the ranges facet to appear in the ProductSearchFacetResultBucket.void
setRanges
(ProductSearchFacetRangesFacetRange... ranges) Define ranges for the facet.void
Define ranges for the facet.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<ProductSearchFacetRangesValue>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map function
-
Method Details
-
getName
Name of the ranges 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
-
getRanges
Define ranges for the facet.
- Returns:
- ranges
-
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
-
setName
Name of the ranges 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
-
setRanges
Define ranges for the facet.
- Parameters:
ranges
- values to be set
-
setRanges
Define ranges for the facet.
- Parameters:
ranges
- values 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
-
of
factory method- Returns:
- instance of ProductSearchFacetRangesValue
-
of
factory method to create a shallow copy ProductSearchFacetRangesValue- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductSearchFacetRangesValue deepCopy(@Nullable ProductSearchFacetRangesValue template) factory method to create a deep copy of ProductSearchFacetRangesValue- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductSearchFacetRangesValue- Returns:
- builder
-
builder
create builder for ProductSearchFacetRangesValue instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductSearchFacetRangesValue
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
-