public class SearchResponse extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SearchResponse.Facet
Information about particular search facet result, including its value (term) and aggregated count.
|
static class |
SearchResponse.FacetedResult
Results, corresponding to a specific search facet.
|
| Constructor and Description |
|---|
SearchResponse()
Initializes an instance of this class.
|
SearchResponse(List<Hit<?>> results)
Initializes an instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getApproxCount() |
SearchResponse.FacetedResult |
getFacetedResult(String facetDefinitionId)
Retrieves the faceted result, which corresponds to the supplied facet definition ID.
|
Collection<SearchResponse.FacetedResult> |
getFacetedResults() |
long |
getLimit() |
long |
getOffset() |
List<Hit<?>> |
getResults()
Holds a list of Hit objects matching the search criteria.
|
boolean |
hasMore() |
void |
setApproxCount(long approxCount) |
void |
setFacetedResults(Collection<SearchResponse.FacetedResult> facetedResults) |
void |
setHasMore(boolean hasMore) |
void |
setLimit(long limit) |
void |
setOffset(long offset) |
void |
setResults(List<Hit<?>> results)
Sets a list of Hits objects matching the search criteria.
|
public List<Hit<?>> getResults()
public void setResults(List<Hit<?>> results)
results - List of Hit objectspublic Collection<SearchResponse.FacetedResult> getFacetedResults()
public SearchResponse.FacetedResult getFacetedResult(String facetDefinitionId)
facetDefinitionId - the facet definition ID to retrieve results fornull if there is no information about
that facet (or no result for that facet is present)public void setFacetedResults(Collection<SearchResponse.FacetedResult> facetedResults)
facetedResults - Faceted results corresponding to facet definitions passed as a part of the search criteria (if any)public long getOffset()
public void setOffset(long offset)
public long getLimit()
public void setLimit(long limit)
public boolean hasMore()
public void setHasMore(boolean hasMore)
public long getApproxCount()
public void setApproxCount(long approxCount)
Copyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.