Package com.mongodb.client.model.search
Interface StringSearchFacet
- All Superinterfaces:
Bson
,SearchFacet
- Since:
- 4.7
- See Also:
-
Field Summary
Fields inherited from interface org.bson.conversions.Bson
DEFAULT_CODEC_REGISTRY
-
Method Summary
Modifier and TypeMethodDescriptionnumBuckets
(int max) Creates a newStringSearchFacet
that explicitly limits the number of facet categories.Methods inherited from interface org.bson.conversions.Bson
toBsonDocument, toBsonDocument
-
Method Details
-
numBuckets
Creates a newStringSearchFacet
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
.
-