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
* Cosmos Full Text Search support
- 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.
- Adding model building support for default language on the container level
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)
Fixes#35476Fixes#35851Fixes#35852Fixes#35853Fixes#35867
/// See <see href="https://learn.microsoft.com/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/azure/cosmos-db/gen-ai/full-text-search">Full-text search in Azure Cosmos DB for NoSQL</see> for more information.
124
+
/// </summary>
125
+
/// <remarks>
126
+
/// See <see href="https://aka.ms/efcore-docs-modeling">Modeling entity types and relationships</see>, and
127
+
/// <see href="https://aka.ms/efcore-docs-cosmos">Accessing Azure Cosmos DB with EF Core</see> for more information and examples.
128
+
/// </remarks>
129
+
/// <param name="indexBuilder">The builder for the index being configured.</param>
130
+
/// <param name="value">The value indicating whether the index is configured for Full-text search.</param>
131
+
/// <returns>A builder to further configure the index.</returns>
/// See <see href="https://learn.microsoft.com/azure/cosmos-db/gen-ai/full-text-search">Full-text search in Azure Cosmos DB for NoSQL</see> for more information.
140
+
/// </summary>
141
+
/// <remarks>
142
+
/// See <see href="https://aka.ms/efcore-docs-modeling">Modeling entity types and relationships</see>, and
143
+
/// <see href="https://aka.ms/efcore-docs-cosmos">Accessing Azure Cosmos DB with EF Core</see> for more information and examples.
144
+
/// </remarks>
145
+
/// <param name="indexBuilder">The builder for the index being configured.</param>
146
+
/// <param name="value">The value indicating whether the index is configured for Full-text search.</param>
147
+
/// <param name="fromDataAnnotation">Indicates whether the configuration was specified using a data annotation.</param>
148
+
/// <returns>
149
+
/// The same builder instance if the configuration was applied,
0 commit comments