How to set index type 'text' using mongodb compass?
Asked Answered
A

1

25

I am currently using mongodb compass, I want to create index with type 'text'. I followed steps given on https://docs.mongodb.com/manual/indexes/#single-field. However, I failed to create index with type 'text'. In compass GUI, dropdown titled 'Select a type' does not show type 'text' in it's dropdown. Am I missing anything ?

Thanks, in advance.

Antefix answered 8/9, 2018 at 11:58 Comment(4)
Wondering the same thing. Is this only for the paid/subscription versions?Stratosphere
I think it is not possible through the interface... You can, -as you already know for sure- do mongo, use [database], db.[collection].ensureIndex({"field":"text"}). Compass will show text indexes thou.Magnetoelectricity
It's not currently implemented. Here is the ticket for it: jira.mongodb.org/browse/COMPASS-520Updraft
its so nice of mongo people not even mentioning that its not possible! no hint about it here: docs.mongodb.com/compass/master/indexesFeuchtwanger
B
3

This is a bug. And you can also provide the feedback on https://feedback.mongodb.com/ to fix this issue. depending upon the voting and the people like to fix this issue, the issue will be fixed in the future versions.

Bernini answered 25/3, 2020 at 9:15 Comment(1)
It would seem to be a known issue.Napiform

© 2022 - 2024 — McMap. All rights reserved.