Skip to content

Commit 7ae706a

Browse files
Fixed a few changes recommended during PR review.
1 parent 308483d commit 7ae706a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

articles/cosmos-db/mongodb/vcore/how-to-text-indexes.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Text Indexes in Azure Cosmos DB for MongoDB vCore
2+
title: Text indexes in Azure Cosmos DB for MongoDB vCore
33
titleSuffix: Azure Cosmos DB for MongoDB vCore
44
description: How to configure and use text indexes in Azure Cosmos DB for MongoDB vCore
55
author: suvishodcitus
@@ -12,7 +12,7 @@ ms.topic: how-to
1212
ms.date: 07/26/2023
1313
---
1414

15-
# Text Indexes in Azure Cosmos DB for MongoDB vCore
15+
# Text indexes in Azure Cosmos DB for MongoDB vCore
1616

1717
[!INCLUDE[MongoDB vCore](../../includes/appliesto-mongodb-vcore.md)]
1818

@@ -43,7 +43,7 @@ To create a text index in Azure Cosmos DB for MongoDB, you can use the "createIn
4343
db.articles.createIndex({ title: "text" })
4444
```
4545

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.
4747

4848
For example, if we want to perform search on both the "title" and "content" fields, then the text index can be defined as:
4949

@@ -101,11 +101,11 @@ This query will return all documents in the "articles" collection that contain t
101101

102102
## Limitations
103103

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.
109109

110110

111111

0 commit comments

Comments
 (0)