Package com.azure.cosmos.models
Enum CosmosFullTextScoreScope
- All Implemented Interfaces:
Serializable,Comparable<CosmosFullTextScoreScope>,java.lang.constant.Constable
Specifies the scope for computing BM25 statistics used by FullTextScore in hybrid search queries.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCompute BM25 statistics (term frequency, inverse document frequency, and document length) across all documents in the container, including all physical and logical partitions.Compute BM25 statistics only over the subset of documents within the partition key values specified in the query. -
Method Summary
Modifier and TypeMethodDescriptionstatic CosmosFullTextScoreScopeReturns the enum constant of this type with the specified name.static CosmosFullTextScoreScope[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
GLOBAL
Compute BM25 statistics (term frequency, inverse document frequency, and document length) across all documents in the container, including all physical and logical partitions. This is the default behavior. -
LOCAL
Compute BM25 statistics only over the subset of documents within the partition key values specified in the query. This is useful for multi-tenant scenarios where scoring should reflect statistics that are accurate for a specific tenant's dataset.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-