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
Compounded indexes on nested fields aren't supported by default due to limitations with arrays. If your nested field doesn't contain an array, the index works as intended. If your nested field contains an array (anywhere on the path), that value is ignored in the index.
91
91
92
-
As an example, a compound index containing `people.dylan.age` works in this case since there's no array on the path:
92
+
As an example, a compound index containing `author.lastName` works in this case since there's no array on the path:
93
93
94
94
```json
95
95
{
@@ -155,14 +155,14 @@ Text indexes in Azure Cosmos DB for MongoDB vcore come with several options to c
155
155
156
156
- Create an index to support search on both the `title` and `content` fields with English language support. Also, assign higher weights to the `title` field to prioritize it in search results.
> When a client performs a text search query with the term "Cosmos DB," the score for each documentin the collection will be calculated based on the presence and frequency of the term in both the "title" and "content" fields, with higher importance given to the "title" field due to its higher weight.
0 commit comments