Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions sdk/cosmos/azure-cosmos/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -313,11 +313,10 @@ public IndexingPolicy setVectorIndexes(List<CosmosVectorIndexSpec> 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<CosmosFullTextIndex> getCosmosFullTextIndexes() {
if (this.cosmosFullTextIndexes == null) {
this.cosmosFullTextIndexes = this.jsonSerializable.getList(Constants.Properties.FULL_TEXT_INDEXES, CosmosFullTextIndex.class);
Expand All @@ -331,12 +330,11 @@ public List<CosmosFullTextIndex> 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<CosmosFullTextIndex> cosmosFullTextIndexes) {
this.cosmosFullTextIndexes = cosmosFullTextIndexes;
this.jsonSerializable.set(Constants.Properties.FULL_TEXT_INDEXES, cosmosFullTextIndexes);
Expand Down
Loading