diff --git a/sdk/cosmos/azure-cosmos/CHANGELOG.md b/sdk/cosmos/azure-cosmos/CHANGELOG.md index 2ca0093ca2cf..c759e4961f45 100644 --- a/sdk/cosmos/azure-cosmos/CHANGELOG.md +++ b/sdk/cosmos/azure-cosmos/CHANGELOG.md @@ -16,6 +16,7 @@ * Fixed availability strategy for Gateway V2 (thin client) by ensuring `RegionalRoutingContext` identity is based only on the immutable gateway endpoint. - See [PR 48432](https://github.com/Azure/azure-sdk-for-java/pull/48432) #### Other Changes +* Promoted the following `@Beta` APIs to GA: `CosmosContainerProperties.getFullTextPolicy()`/`setFullTextPolicy()`, `IndexingPolicy.getCosmosFullTextIndexes()`/`setCosmosFullTextIndexes()`. - See [PR 48538](https://github.com/Azure/azure-sdk-for-java/pull/48538) * Added `appendUserAgentSuffix` method to `AsyncDocumentClient` to allow downstream libraries to append to the user agent after client construction. - See [PR 48505](https://github.com/Azure/azure-sdk-for-java/pull/48505) * Added aggressive HTTP timeout policies for document operations routed to Gateway V2. - [PR 47879](https://github.com/Azure/azure-sdk-for-java/pull/47879) * Added a default connect timeout of 5s for Gateway V2 (thin client) data-plane endpoints. - See [PR 48174](https://github.com/Azure/azure-sdk-for-java/pull/48174) diff --git a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/ThroughputControlGroupConfigBuilder.java b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/ThroughputControlGroupConfigBuilder.java index cdd0b861ade8..513c1dbe81ad 100644 --- a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/ThroughputControlGroupConfigBuilder.java +++ b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/ThroughputControlGroupConfigBuilder.java @@ -93,7 +93,7 @@ public ThroughputControlGroupConfigBuilder targetThroughput(int targetThroughput @Deprecated @Beta(value = Beta.SinceVersion.V4_13_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING) public ThroughputControlGroupConfigBuilder setTargetThroughputThreshold(double targetThroughputThreshold) { - checkArgument(targetThroughputThreshold > 0 && targetThroughputThreshold <= 1, "Target throughput threshold should between (0, 1]"); + checkArgument(targetThroughputThreshold > 0 && targetThroughputThreshold <= 1, "Target throughput threshold should be between (0, 1]"); this.targetThroughputThreshold = targetThroughputThreshold; return this; @@ -108,7 +108,7 @@ public ThroughputControlGroupConfigBuilder setTargetThroughputThreshold(double t * @return The {@link ThroughputControlGroupConfigBuilder}. */ public ThroughputControlGroupConfigBuilder targetThroughputThreshold(double targetThroughputThreshold) { - checkArgument(targetThroughputThreshold > 0 && targetThroughputThreshold <= 1, "Target throughput threshold should between (0, 1]"); + checkArgument(targetThroughputThreshold > 0 && targetThroughputThreshold <= 1, "Target throughput threshold should be between (0, 1]"); this.targetThroughputThreshold = targetThroughputThreshold; return this; diff --git a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/models/CosmosContainerProperties.java b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/models/CosmosContainerProperties.java index f24579861b6b..246b245dea5a 100644 --- a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/models/CosmosContainerProperties.java +++ b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/models/CosmosContainerProperties.java @@ -375,19 +375,17 @@ public CosmosContainerProperties setVectorEmbeddingPolicy(CosmosVectorEmbeddingP * * @return the FullTextPolicy */ - @Beta(value = Beta.SinceVersion.V4_65_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING) public CosmosFullTextPolicy getFullTextPolicy() { return this.documentCollection.getFullTextPolicy(); } /** - * Gets the Full Text Policy containing paths for full text search and the language specification for each path. + * Sets the Full Text Policy containing paths for full text search and the language specification for each path. * It also contains the default language to be used. * * @param value the FullTextPolicy. * @return the CosmosContainerProperties. */ - @Beta(value = Beta.SinceVersion.V4_65_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING) public CosmosContainerProperties setFullTextPolicy(CosmosFullTextPolicy value) { this.documentCollection.setFullTextPolicy(value); return this; diff --git a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/models/IndexingPolicy.java b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/models/IndexingPolicy.java index bd8b853053f0..dc7701cd8e7d 100644 --- a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/models/IndexingPolicy.java +++ b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/models/IndexingPolicy.java @@ -7,7 +7,7 @@ import com.azure.cosmos.implementation.Index; import com.azure.cosmos.implementation.JsonSerializable; import com.azure.cosmos.implementation.apachecommons.lang.StringUtils; -import com.azure.cosmos.util.Beta; + import com.fasterxml.jackson.databind.node.ArrayNode; import com.fasterxml.jackson.databind.node.ObjectNode; @@ -313,11 +313,10 @@ public IndexingPolicy setVectorIndexes(List vectorIndexes } /** - * Gets the full text search paths. + * Gets the full text indexes. * * @return the full text indexes. */ - @Beta(value = Beta.SinceVersion.V4_65_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING) public List getCosmosFullTextIndexes() { if (this.cosmosFullTextIndexes == null) { this.cosmosFullTextIndexes = this.jsonSerializable.getList(Constants.Properties.FULL_TEXT_INDEXES, CosmosFullTextIndex.class); @@ -331,12 +330,11 @@ public List getCosmosFullTextIndexes() { } /** - * Sets the full text search paths. + * Sets the full text indexes. * * @param cosmosFullTextIndexes the fullText indexes - * @return the excluded paths + * @return the IndexingPolicy. */ - @Beta(value = Beta.SinceVersion.V4_65_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING) public IndexingPolicy setCosmosFullTextIndexes(List cosmosFullTextIndexes) { this.cosmosFullTextIndexes = cosmosFullTextIndexes; this.jsonSerializable.set(Constants.Properties.FULL_TEXT_INDEXES, cosmosFullTextIndexes);