T
- type of the resourcepublic final class TermFacetedSearchSearchModel<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 |
---|---|
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.
|
static <T> TermFacetedSearchSearchModel<T> |
of(String attributePath)
Creates an instance of the search model to generate term faceted search expressions.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isIn
protected static final TypeSerializer<String> TYPE_SERIALIZER
protected final SearchModel<T> searchModel
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> 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> TermFacetedSearchSearchModel<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()
FacetedSearchSearchModel
getSearchModel
in interface FacetedSearchSearchModel<T>