Class AbstractSearchFacetResult
java.lang.Object
com.couchbase.client.java.search.result.AbstractSearchFacetResult
- All Implemented Interfaces:
SearchFacetResult
- Direct Known Subclasses:
DateRangeSearchFacetResult
,NumericRangeSearchFacetResult
,TermSearchFacetResult
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
-
Method Summary
-
Field Details
-
internal
-
-
Constructor Details
-
AbstractSearchFacetResult
-
-
Method Details
-
name
- Specified by:
name
in interfaceSearchFacetResult
- Returns:
- the name of the facet.
-
field
- Specified by:
field
in interfaceSearchFacetResult
- Returns:
- the field the
SearchFacet
was targeting.
-
missing
public long missing()- Specified by:
missing
in interfaceSearchFacetResult
- Returns:
- the number of results that couldn't be faceted, missing the adequate value. Not matter how many more buckets are added to the original facet, these result won't ever be included in one.
-
other
public long other()- Specified by:
other
in interfaceSearchFacetResult
- Returns:
- the number of results that could have been faceted (because they have a value for the facet's field) but weren't, due to not having a bucket in which they belong. Adding a bucket can result in these results being faceted.
-
total
public long total()- Specified by:
total
in interfaceSearchFacetResult
- Returns:
- the total number of *valued* facet results. Total =
SearchFacetResult.other()
+ terms (but doesn't includeSearchFacetResult.missing()
).
-