Skip to content

Commit 2cc2ab6

Browse files
authored
Query: Fixes Full Text Search APIs by marking them public (#5150)
# Query: Fixes Full Text Search APIs by making them public ## Description This change makes the Full-Text Search APIs public. ## Type of change Please delete options that are not relevant. - [x] Bug fix (non-breaking change which fixes an issue) - [] New feature (non-breaking change which adds functionality) - [] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [x] This change requires a documentation update
1 parent e4ec354 commit 2cc2ab6

11 files changed

Lines changed: 238 additions & 296 deletions

File tree

Microsoft.Azure.Cosmos/src/Fluent/Settings/ContainerBuilder.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,7 @@ public VectorEmbeddingPolicyDefinition WithVectorEmbeddingPolicy(
138138
/// <param name="defaultLanguage">A string indicating the default language.</param>
139139
/// <param name="fullTextPaths">List of full text paths to include in the policy definition.</param>
140140
/// <returns>An instance of <see cref="FullTextPolicyDefinition"/>.</returns>
141-
#if PREVIEW
142-
public
143-
#else
144-
internal
145-
#endif
146-
FullTextPolicyDefinition WithFullTextPolicy(
141+
public FullTextPolicyDefinition WithFullTextPolicy(
147142
string defaultLanguage,
148143
Collection<FullTextPath> fullTextPaths)
149144
{

Microsoft.Azure.Cosmos/src/Fluent/Settings/FullTextIndexDefinition.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,7 @@ namespace Microsoft.Azure.Cosmos.Fluent
1010
/// Full text index fluent definition.
1111
/// </summary>
1212
/// <seealso cref="FullTextIndexPath"/>
13-
#if PREVIEW
14-
public
15-
#else
16-
internal
17-
#endif
18-
class FullTextIndexDefinition<T>
13+
public class FullTextIndexDefinition<T>
1914
{
2015
private readonly FullTextIndexPath fullTextIndexPath = new ();
2116
private readonly T parent;

Microsoft.Azure.Cosmos/src/Fluent/Settings/FullTextPolicyDefinition.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,7 @@ namespace Microsoft.Azure.Cosmos.Fluent
1010
/// <summary>
1111
/// <see cref="FullTextPolicyDefinition"/> fluent definition.
1212
/// </summary>
13-
#if PREVIEW
14-
public
15-
#else
16-
internal
17-
#endif
18-
class FullTextPolicyDefinition
13+
public class FullTextPolicyDefinition
1914
{
2015
private readonly ContainerBuilder parent;
2116
private readonly Action<FullTextPolicy> attachCallback;

Microsoft.Azure.Cosmos/src/Fluent/Settings/IndexingPolicyDefinition.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,7 @@ public VectorIndexDefinition<IndexingPolicyDefinition<T>> WithVectorIndex()
128128
/// Defines a <see cref="FullTextIndexPath"/> in the current <see cref="Container"/>'s definition.
129129
/// </summary>
130130
/// <returns>An instance of <see cref="FullTextIndexDefinition{T}"/>.</returns>
131-
#if PREVIEW
132-
public
133-
#else
134-
internal
135-
#endif
136-
FullTextIndexDefinition<IndexingPolicyDefinition<T>> WithFullTextIndex()
131+
public FullTextIndexDefinition<IndexingPolicyDefinition<T>> WithFullTextIndex()
137132
{
138133
return new FullTextIndexDefinition<IndexingPolicyDefinition<T>>(
139134
this,

Microsoft.Azure.Cosmos/src/Resource/Settings/ContainerProperties.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -366,12 +366,7 @@ public Collection<ComputedProperty> ComputedProperties
366366
/// </para>
367367
/// </remarks>
368368
[JsonIgnore]
369-
#if PREVIEW
370-
public
371-
#else
372-
internal
373-
#endif
374-
FullTextPolicy FullTextPolicy
369+
public FullTextPolicy FullTextPolicy
375370
{
376371
get => this.fullTextPolicyInternal;
377372
set => this.fullTextPolicyInternal = value;

Microsoft.Azure.Cosmos/src/Resource/Settings/FullTextIndexPath.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,7 @@ namespace Microsoft.Azure.Cosmos
3838
/// }
3939
/// ]]>
4040
/// </example>
41-
#if PREVIEW
42-
public
43-
#else
44-
internal
45-
#endif
46-
sealed class FullTextIndexPath
41+
public sealed class FullTextIndexPath
4742
{
4843
/// <summary>
4944
/// Gets or sets the full path in a document used for full text indexing.

Microsoft.Azure.Cosmos/src/Resource/Settings/FullTextPath.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,7 @@ namespace Microsoft.Azure.Cosmos
3131
/// }
3232
/// ]]>
3333
/// </example>
34-
#if PREVIEW
35-
public
36-
#else
37-
internal
38-
#endif
39-
sealed class FullTextPath : IEquatable<FullTextPath>
34+
public class FullTextPath : IEquatable<FullTextPath>
4035
{
4136
/// <summary>
4237
/// Gets or sets a string containing the path of the full text index.

Microsoft.Azure.Cosmos/src/Resource/Settings/FullTextPolicy.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,7 @@ namespace Microsoft.Azure.Cosmos
1212
/// Represents the full text policy configuration for specifying the full text paths on items in the container in the Azure Cosmos DB service.
1313
/// </summary>
1414
/// <seealso cref="ContainerProperties"/>
15-
#if PREVIEW
16-
public
17-
#else
18-
internal
19-
#endif
20-
sealed class FullTextPolicy
15+
public sealed class FullTextPolicy
2116
{
2217
[JsonProperty(PropertyName = "fullTextPaths", NullValueHandling = NullValueHandling.Ignore)]
2318
private Collection<FullTextPath> fullTextPathsInternal;

Microsoft.Azure.Cosmos/src/Resource/Settings/IndexingPolicy.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,7 @@ public IndexingPolicy()
160160
/// ]]>
161161
/// </example>
162162
[JsonProperty(PropertyName = "fullTextIndexes", NullValueHandling = NullValueHandling.Ignore)]
163-
#if PREVIEW
164-
165-
public
166-
#else
167-
internal
168-
#endif
169-
Collection<FullTextIndexPath> FullTextIndexes{ get; set; } = new Collection<FullTextIndexPath>();
163+
public Collection<FullTextIndexPath> FullTextIndexes{ get; set; } = new Collection<FullTextIndexPath>();
170164

171165
/// <summary>
172166
/// This contains additional values for scenarios where the SDK is not aware of new fields.

Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/Contracts/DotNetPreviewSDKAPI.json

Lines changed: 0 additions & 241 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)