T
- type of the resourceV
- type of the valuepublic interface FacetSearchModel<T,V>
Modifier and Type | Method and Description |
---|---|
TermFacetExpression<T> |
allTerms()
Generates an expression to obtain the facets of the attribute for all values.
|
String |
getAlias()
The alias related to the facet.
|
SearchModel<T> |
getSearchModel()
The search model for the facet.
|
Boolean |
isCountingProducts()
Whether the facet is counting products.
|
FilteredFacetExpression<T> |
onlyTerm(Iterable<V> values)
Generates an expression to obtain the facets of the attribute for only the given values.
|
FilteredFacetExpression<T> |
onlyTerm(V value)
Generates an expression to obtain the facet of the attribute for only the given value.
|
FilteredFacetExpression<T> |
onlyTermAsString(Iterable<String> values)
Generates an expression to obtain the facets of the attribute for only the given values.
|
FacetSearchModel<T,V> |
withAlias(String alias)
Allows to set an alias to identify the facet.
|
FacetSearchModel<T,V> |
withCountingProducts(Boolean isCountingProducts)
Allows to enable/disable the counting of products.
|
SearchModel<T> getSearchModel()
@Nullable Boolean isCountingProducts()
FacetSearchModel<T,V> withAlias(String alias)
alias
- the identifier to use for the facetFacetSearchModel<T,V> withCountingProducts(Boolean isCountingProducts)
isCountingProducts
- whether to count products or notTermFacetExpression<T> allTerms()
FilteredFacetExpression<T> onlyTerm(V value)
value
- the value from which to obtain the facetFilteredFacetExpression<T> onlyTerm(Iterable<V> values)
values
- the values from which to obtain the facetsFilteredFacetExpression<T> onlyTermAsString(Iterable<String> values)
values
- the values from which to obtain the facets