public final class SearchUtils extends Object
| Constructor and Description |
|---|
SearchUtils() |
| Modifier and Type | Method and Description |
|---|---|
static SearchResponse.FacetedResult |
getFacetedResult(String facetDefinitionId,
RenderContext ctx)
Retrieves the faceted result, which corresponds to the supplied facet definition ID.
|
static SearchResponse |
getSearchResponse(RenderContext ctx)
Obtains the search response object for the current search, performing a search if not yet done for current request.
|
public static SearchResponse.FacetedResult getFacetedResult(String facetDefinitionId, RenderContext ctx)
facetDefinitionId - the facet definition ID to retrieve results forctx - current rendering contextnull if there is no information about
that facet (or no result for that facet is present)public static SearchResponse getSearchResponse(RenderContext ctx)
ctx - current rendering contextnull if there are no search criteria in the current requestCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.