Interface SearchFacetResult

All Known Implementing Classes:
AbstractSearchFacetResult, DateRangeSearchFacetResult, NumericRangeSearchFacetResult, TermSearchFacetResult

public interface SearchFacetResult
Base interface for all facet results.
Since:
2.3.0
  • Method Details Link icon

    • name Link icon

      String name()
      Returns:
      the name of the facet.
    • field Link icon

      String field()
      Returns:
      the field the SearchFacet was targeting.
    • total Link icon

      long total()
      Returns:
      the total number of *valued* facet results. Total = other() + terms (but doesn't include missing()).
    • missing Link icon

      long missing()
      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 Link icon

      long other()
      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.