Class FacetResult

java.lang.Object
com.azure.search.documents.models.FacetResult

public final class FacetResult extends Object
A single bucket of a facet query result. Reports the number of documents with a field value falling within a particular range or having a particular value or interval.
  • Constructor Details

    • FacetResult

      public FacetResult()
  • Method Details

    • getCount

      public Long getCount()
      Get the count property: The approximate count of documents falling within the bucket described by this facet.
      Returns:
      the count value.
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Get the additionalProperties property: A single bucket of a facet query result. Reports the number of documents with a field value falling within a particular range or having a particular value or interval.
      Returns:
      the additionalProperties value.
    • setAdditionalProperties

      public FacetResult setAdditionalProperties(Map<String,Object> additionalProperties)
      Set the additionalProperties property: A single bucket of a facet query result. Reports the number of documents with a field value falling within a particular range or having a particular value or interval.
      Parameters:
      additionalProperties - the additionalProperties value to set.
      Returns:
      the FacetResult object itself.