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
@@ -43,7 +43,7 @@ To create a text index in Azure Cosmos DB for MongoDB, you can use the "createIn
43
43
db.articles.createIndex({ title: "text" })
44
44
```
45
45
46
-
While we can define only one text index per collection, Azure CosmosDB for MongoDB allows you to create text indexes on multiple fields to enable you to perform text searches across different fields in your documents.
46
+
While we can define only one text index per collection, Azure Cosmos DB for MongoDB allows you to create text indexes on multiple fields to enable you to perform text searches across different fields in your documents.
47
47
48
48
For example, if we want to perform search on both the "title" and "content" fields, then the text index can be defined as:
49
49
@@ -101,11 +101,11 @@ This query will return all documents in the "articles" collection that contain t
101
101
102
102
## Limitations
103
103
104
-
1. Only one text index can be defined on a collection.
105
-
2. Text indexes support simple text searches and do not provide advanced search capabilities like regular expression searches.
106
-
3. Hint() is not supported in combination with a query using $text expression.
107
-
4. Sort operations cannot leverage the ordering of the text index in MongoDB.
108
-
5. Text indexes can be relatively large, consuming significant storage space compared to other index types.
104
+
* Only one text index can be defined on a collection.
105
+
* Text indexes support simple text searches and do not provide advanced search capabilities like regular expression searches.
106
+
* Hint() is not supported in combination with a query using $text expression.
107
+
* Sort operations cannot leverage the ordering of the text index in MongoDB.
108
+
* Text indexes can be relatively large, consuming significant storage space compared to other index types.
0 commit comments