public class SearchResult extends Object
| Constructor and Description |
|---|
SearchResult(List<SearchRow> rows,
Map<String,SearchFacetResult> facets,
SearchMetaData meta)
Creates a new SearchResult.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,SearchFacetResult> |
facets()
Returns the facets if present in this query.
|
SearchMetaData |
metaData()
Returns the
SearchMetaData giving access to the additional metadata associated with this search
query. |
List<SearchRow> |
rows()
Returns all search hits.
|
String |
toString() |
public SearchResult(List<SearchRow> rows, Map<String,SearchFacetResult> facets, SearchMetaData meta)
rows - the rows/hits for this result.meta - the search metadata.public SearchMetaData metaData()
SearchMetaData giving access to the additional metadata associated with this search
query.public Map<String,SearchFacetResult> facets()
Copyright © 2020 Couchbase, Inc.. All rights reserved.