Class NestableJsonFacet
java.lang.Object
org.apache.solr.client.solrj.response.json.NestableJsonFacet
- Direct Known Subclasses:
BucketJsonFacet
Represents the response to a "query" JSON facet.
Relies on several other types to represent the variety of JSON facet responses. The parsing of these responses relies partially on the JSON property names. When naming your facets in your request, avoid choosing names that match existing values in the JSON faceting response schema, such as "count", "val", "minX", etc.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBucketBasedFacets(String name) Retrieve a nested "terms" or "range" facet by its name.longgetCount()The number of records matching the domain of this facet.getHeatmapFacetByName(String name) Retrieve a "heatmap" facet by its namegetQueryFacet(String name) Retrieve a nested "query" facet by its namegetStatValue(String name) Retrieve the value for a stat or agg with the provided name
-
Constructor Details
-
NestableJsonFacet
-
-
Method Details
-
getCount
public long getCount()The number of records matching the domain of this facet. -
getQueryFacet
Retrieve a nested "query" facet by its name -
getQueryFacetNames
- Returns:
- the names of any "query" facets that are direct descendants of the current facet
-
getBucketBasedFacets
Retrieve a nested "terms" or "range" facet by its name. -
getBucketBasedFacetNames
- Returns:
- the names of any "terms" or "range" facets that are direct descendants of this facet
-
getStatValue
Retrieve the value for a stat or agg with the provided name -
getStatNames
- Returns:
- the names of any stat or agg that are direct descendants of this facet
-
getHeatmapFacetByName
Retrieve a "heatmap" facet by its name -
getHeatmapFacetNames
- Returns:
- the names of any heatmap facets that are direct descendants of this facet
-
getKeysToSkip
-