Interface StringSearchFacet

All Superinterfaces:
org.bson.conversions.Bson, SearchFacet

@Sealed @Beta({CLIENT,SERVER}) public interface StringSearchFacet extends SearchFacet
Since:
4.7
See Also:
  • Field Summary

    Fields inherited from interface org.bson.conversions.Bson

    DEFAULT_CODEC_REGISTRY
  • Method Summary

    Modifier and Type
    Method
    Description
    numBuckets(int max)
    Creates a new StringSearchFacet that explicitly limits the number of facet categories.

    Methods inherited from interface org.bson.conversions.Bson

    toBsonDocument, toBsonDocument
  • Method Details

    • numBuckets

      StringSearchFacet numBuckets(int max)
      Creates a new StringSearchFacet that explicitly limits the number of facet categories.
      Parameters:
      max - The maximum number of facet categories to return in the results.
      Returns:
      A new StringSearchFacet.