Skip to content

Unable to create TextScoreIndex #361

@tikiram

Description

@tikiram

Hi, I was setting up some collections and I'm able to create a UniqueIndex, but when I use TextScoreIndex, I get this error

MongoClient.MongoGenericErrorReply(ok: 0, errorMessage: Optional("Error in specification { name: \"email_search\", key: { email: { $meta: \"textScore\" } } } :: caused by :: Values in v:2 index key pattern cannot be of type object. Only numbers > 0, numbers < 0, and strings are allowed."), code: Optional(67), codeName: Optional("CannotCreateIndex"))

I'm using mongodb-community 8.0.8, is this a bug or something that has to be fixed?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions