public static class SearchResponse.FacetedResult extends Object
| Constructor and Description |
|---|
FacetedResult(String id,
List<SearchResponse.Facet> facets) |
| Modifier and Type | Method and Description |
|---|---|
SearchResponse.Facet |
getFacet(String valueAsString)
Facet, requested by its string value.
|
List<SearchResponse.Facet> |
getFacets()
A list of facets.
|
String |
getId()
Returns identifier of the corresponding facet definition to match this faceted result to.
|
boolean |
isResultEmpty()
Checks that the faceted result is empty, i.e.
|
public FacetedResult(String id, List<SearchResponse.Facet> facets)
public String getId()
public SearchResponse.Facet getFacet(String valueAsString)
valueAsString - the facet string value to retrieve facet fornull if there is no corresponding facetpublic List<SearchResponse.Facet> getFacets()
public boolean isResultEmpty()
true if the faceted result is considered as empty; false otherwiseCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.