MGE
MGE

Reputation: 912

Index 'text' MongoDB - 'text' is not supported

I'm having troubles when creating a text Index on my collection with Mongo. In my case, the property I'm trying to map to, is called url, and it's a text.

Here's what I'm getting:

db.Property.createIndex({url: "text"})

Does anybody know what I'm missing?

Upvotes: 3

Views: 3189

Answers (1)

MGE
MGE

Reputation: 912

After some search, I found out that MongoDB provided on Azure (DOCUMENTDB...) does not support it. https://learn.microsoft.com/en-us/azure/documentdb/documentdb-indexing-policies

Upvotes: 6

Related Questions