You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Adding model building API to configure property as full-text search enabled, as well as setup the index for it,
- Adding model validation (e.g. FTS index not matching FTS property),
- Adding EF.Functions stubs and translations for FullTextContains, FullTextContainsAll, FullTextContainsAny, FullTextScore and RRF (for hybrid),
- Adding logic in SelectExpression to produce ORDER BY RANK when necessary,
- Adding validation when attempting to mix with ORDER BY RANK with regular ORDER BY,
- Rewrite OFFSET/LIMIT from parameter to constant when ORDER BY RANK is present.
Also fixed / added support for vector search on owned types (since it shares logic with FTS) and added some tests.
outstanding work:
- support for FTS Container building using Azure.ResourceManager.CosmosDb (currently blocked on updated package being released)
- add model building support for default language (superfluous for now, since only one language is supported),
- clean up exception messages and put them in a resource file,
Fixes#35476Fixes#35853Fixes#35867Fixes#35852
/// See <see href="https://learn.microsoft.com/en-us/azure/cosmos-db/gen-ai/full-text-search">Full-text search in Azure Cosmos DB for NoSQL</see> for more information.
106
+
/// </summary>
107
+
/// <remarks>
108
+
/// See <see href="https://aka.ms/efcore-docs-modeling">Modeling entity types and relationships</see>, and
109
+
/// <see href="https://aka.ms/efcore-docs-cosmos">Accessing Azure Cosmos DB with EF Core</see> for more information and examples.
110
+
/// </remarks>
111
+
/// <param name="indexBuilder">The builder for the index being configured.</param>
112
+
/// <param name="value">The value indicating whether the index is configured for Full-text search.</param>
113
+
/// <returns>A builder to further configure the index.</returns>
/// See <see href="https://learn.microsoft.com/en-us/azure/cosmos-db/gen-ai/full-text-search">Full-text search in Azure Cosmos DB for NoSQL</see> for more information.
125
+
/// </summary>
126
+
/// <remarks>
127
+
/// See <see href="https://aka.ms/efcore-docs-modeling">Modeling entity types and relationships</see>, and
128
+
/// <see href="https://aka.ms/efcore-docs-cosmos">Accessing Azure Cosmos DB with EF Core</see> for more information and examples.
129
+
/// </remarks>
130
+
/// <param name="indexBuilder">The builder for the index being configured.</param>
131
+
/// <param name="value">The value indicating whether the index is configured for Full-text search.</param>
132
+
/// <returns>A builder to further configure the index.</returns>
/// See <see href="https://learn.microsoft.com/en-us/azure/cosmos-db/gen-ai/full-text-search">Full-text search in Azure Cosmos DB for NoSQL</see> for more information.
142
+
/// </summary>
143
+
/// <remarks>
144
+
/// See <see href="https://aka.ms/efcore-docs-modeling">Modeling entity types and relationships</see>, and
145
+
/// <see href="https://aka.ms/efcore-docs-cosmos">Accessing Azure Cosmos DB with EF Core</see> for more information and examples.
146
+
/// </remarks>
147
+
/// <param name="indexBuilder">The builder for the index being configured.</param>
148
+
/// <param name="value">The value indicating whether the index is configured for Full-text search.</param>
149
+
/// <param name="fromDataAnnotation">Indicates whether the configuration was specified using a data annotation.</param>
150
+
/// <returns>
151
+
/// The same builder instance if the configuration was applied,
/// Returns the value indicating whether the index is configured for Full-text search.
70
+
/// See <see href="https://learn.microsoft.com/en-us/azure/cosmos-db/gen-ai/full-text-search">Full-text search in Azure Cosmos DB for NoSQL</see> for more information.
71
+
/// </summary>
72
+
/// <param name="index">The index.</param>
73
+
/// <returns>The index type to use, or <see langword="null" /> if none is set.</returns>
/// See <see href="https://learn.microsoft.com/en-us/azure/cosmos-db/gen-ai/full-text-search">Full-text search in Azure Cosmos DB for NoSQL</see> for more information.
83
+
/// </summary>
84
+
/// <param name="index">The index.</param>
85
+
/// <param name="value">The value indicating whether the index is configured for Full-text search.</param>
/// See <see href="https://learn.microsoft.com/en-us/azure/cosmos-db/gen-ai/full-text-search">Full-text search in Azure Cosmos DB for NoSQL</see> for more information.
93
+
/// </summary>
94
+
/// <param name="index">The index.</param>
95
+
/// <param name="value">The value indicating whether the index is configured for Full-text search.</param>
96
+
/// <param name="fromDataAnnotation">Indicates whether the configuration was specified using a data annotation.</param>
0 commit comments