Interface DateSearchFacet

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

@Sealed @Beta({CLIENT,SERVER}) public interface DateSearchFacet 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
    Creates a new DateSearchFacet with the default bucket specified.

    Methods inherited from interface org.bson.conversions.Bson

    toBsonDocument, toBsonDocument
  • Method Details

    • defaultBucket

      DateSearchFacet defaultBucket(String name)
      Creates a new DateSearchFacet with the default bucket specified.
      Parameters:
      name - The name of the bucket for documents that do not fall within the specified boundaries.
      Returns:
      A new DateSearchFacet.