Class ResultSetContext
-
- All Implemented Interfaces:
@JsonClass(generateAdapter = true) public final class ResultSetContextContext that applies to the whole result set
-
-
Field Summary
Fields Modifier and Type Field Description private ResponseConsistencyconsistencyprivate SearchRequestrequestprivate List<ResultSetContextFacetQueries>facetQueriesprivate List<ResultBuckets>facetsFieldsprivate List<GenericFacetResponse>facetsprivate List<ResultSetContextSpellcheck>spellcheck
-
Constructor Summary
Constructors Constructor Description ResultSetContext(ResponseConsistency consistency, SearchRequest request, List<ResultSetContextFacetQueries> facetQueries, List<ResultBuckets> facetsFields, List<GenericFacetResponse> facets, List<ResultSetContextSpellcheck> spellcheck)
-
Method Summary
Modifier and Type Method Description final ResponseConsistencygetConsistency()final UnitsetConsistency(@Json(name = "consistency") ResponseConsistency consistency)final SearchRequestgetRequest()final UnitsetRequest(@Json(name = "request") SearchRequest request)final List<ResultSetContextFacetQueries>getFacetQueries()The counts from facet queries final UnitsetFacetQueries(@Json(name = "facetQueries") List<ResultSetContextFacetQueries> facetQueries)The counts from facet queries final List<ResultBuckets>getFacetsFields()The counts from field facets final UnitsetFacetsFields(@Json(name = "facetsFields") List<ResultBuckets> facetsFields)The counts from field facets final List<GenericFacetResponse>getFacets()The faceted response final UnitsetFacets(@Json(name = "facets") List<GenericFacetResponse> facets)The faceted response final List<ResultSetContextSpellcheck>getSpellcheck()Suggested corrections If zero results were found for the original query then a single entry of type \"searchInsteadFor\" will be returned. final UnitsetSpellcheck(@Json(name = "spellcheck") List<ResultSetContextSpellcheck> spellcheck)Suggested corrections If zero results were found for the original query then a single entry of type \"searchInsteadFor\" will be returned. -
-
Constructor Detail
-
ResultSetContext
ResultSetContext(ResponseConsistency consistency, SearchRequest request, List<ResultSetContextFacetQueries> facetQueries, List<ResultBuckets> facetsFields, List<GenericFacetResponse> facets, List<ResultSetContextSpellcheck> spellcheck)
-
-
Method Detail
-
getConsistency
final ResponseConsistency getConsistency()
-
setConsistency
final Unit setConsistency(@Json(name = "consistency") ResponseConsistency consistency)
-
getRequest
final SearchRequest getRequest()
-
setRequest
final Unit setRequest(@Json(name = "request") SearchRequest request)
-
getFacetQueries
final List<ResultSetContextFacetQueries> getFacetQueries()
The counts from facet queries
-
setFacetQueries
final Unit setFacetQueries(@Json(name = "facetQueries") List<ResultSetContextFacetQueries> facetQueries)
The counts from facet queries
-
getFacetsFields
final List<ResultBuckets> getFacetsFields()
The counts from field facets
-
setFacetsFields
final Unit setFacetsFields(@Json(name = "facetsFields") List<ResultBuckets> facetsFields)
The counts from field facets
-
getFacets
final List<GenericFacetResponse> getFacets()
The faceted response
-
setFacets
final Unit setFacets(@Json(name = "facets") List<GenericFacetResponse> facets)
The faceted response
-
getSpellcheck
final List<ResultSetContextSpellcheck> getSpellcheck()
Suggested corrections If zero results were found for the original query then a single entry of type \"searchInsteadFor\" will be returned. If alternatives were found that return more results than the original query they are returned as \"didYouMean\" options. The highest quality suggestion is first.
-
setSpellcheck
final Unit setSpellcheck(@Json(name = "spellcheck") List<ResultSetContextSpellcheck> spellcheck)
Suggested corrections If zero results were found for the original query then a single entry of type \"searchInsteadFor\" will be returned. If alternatives were found that return more results than the original query they are returned as \"didYouMean\" options. The highest quality suggestion is first.
-
-
-
-