T - type of the resourcepublic final class RangeTermFacetedSearchSearchModel<T> extends Base
| Modifier and Type | Field and Description |
|---|---|
protected SearchModel<T> |
searchModel |
protected static TypeSerializer<String> |
TYPE_SERIALIZER |
| Modifier and Type | Method and Description |
|---|---|
RangeFacetedSearchExpression<T> |
allRanges()
Generates an expression to select all elements, without filtering, along with the facet for all terms for this attribute.
|
TermFacetedSearchExpression<T> |
allTerms()
Generates an expression to select all elements, without filtering, along with the facet for all terms for this attribute.
|
TermFacetedSearchExpression<T> |
containsAll(Iterable<String> values)
Generates an expression to select all elements with attributes matching all the given values, along with the facet for all terms for this attribute.
|
TermFacetedSearchExpression<T> |
containsAny(Iterable<String> values)
Generates an expression to select all elements with attributes matching any of the given values, along with the facet for all terms for this attribute.
|
SearchModel<T> |
getSearchModel()
The search model for the faceted search.
|
TermFacetedSearchExpression<T> |
is(String value)
Generates an expression to select all elements with the given attribute value, along with the facet for all terms for this attribute.
|
RangeFacetedSearchExpression<T> |
isBetween(FilterRange<String> range)
Generates an expression to select all elements with an attribute value within the given range, along with the facet for all ranges for this attribute.
|
RangeFacetedSearchExpression<T> |
isBetweenAll(Iterable<FilterRange<String>> ranges)
Generates an expression to select all elements with an attribute value within all the given ranges, along with the facet for all ranges for this attribute.
|
RangeFacetedSearchExpression<T> |
isBetweenAny(Iterable<FilterRange<String>> ranges)
Generates an expression to select all elements with an attribute value within any of the given ranges, along with the facet for all ranges for this attribute.
|
TermFacetedSearchExpression<T> |
isIn(Iterable<String> values)
Generates an expression to select all elements with attributes matching any of the given values, along with the facet for all terms for this attribute.
|
static <T> RangeTermFacetedSearchSearchModel<T> |
of(String attributePath)
Creates an instance of the search model to generate range and term faceted search expressions.
|
protected static final TypeSerializer<String> TYPE_SERIALIZER
protected final SearchModel<T> searchModel
public RangeFacetedSearchExpression<T> isBetween(FilterRange<String> range)
range - the range of values to filter bypublic RangeFacetedSearchExpression<T> isBetweenAny(Iterable<FilterRange<String>> ranges)
ranges - the ranges of values to filter bypublic RangeFacetedSearchExpression<T> isBetweenAll(Iterable<FilterRange<String>> ranges)
ranges - the ranges of values to filter bypublic RangeFacetedSearchExpression<T> allRanges()
public TermFacetedSearchExpression<T> allTerms()
allTerms in interface FacetedSearchSearchModel<T>public TermFacetedSearchExpression<T> is(String value)
is in interface FacetedSearchSearchModel<T>value - the value to filter bypublic TermFacetedSearchExpression<T> isIn(Iterable<String> values)
values - the values to filter bypublic TermFacetedSearchExpression<T> containsAny(Iterable<String> values)
containsAny in interface FacetedSearchSearchModel<T>values - the values to filter bypublic TermFacetedSearchExpression<T> containsAll(Iterable<String> values)
containsAll in interface FacetedSearchSearchModel<T>values - the values to filter bypublic static <T> RangeTermFacetedSearchSearchModel<T> of(String attributePath)
T - type of the resourceattributePath - the path of the attribute as expected by Composable Commerce (e.g. "variants.attributes.color.key")public SearchModel<T> getSearchModel()
FacetedSearchSearchModelgetSearchModel in interface FacetedSearchSearchModel<T>