Skip to content

Disable creation of certain Mongo indexes? #393

Open
@clarkritchie

Description

@clarkritchie

Hi and thanks for this package!

It looks like this package automatically creates a bunch of Mongo indexes when the app starts up.

Is there any way to tell it to not create a specific index? I'm occasionally getting a MongoError: E11000 duplicate key error on a field that I don't ever need to search on.

I noticed I can:

  • db.users.getIndexes() -- see the problem index
  • db.users.dropIndex('services.phone.verify.code_1'); -- index is gone
  • restart app, index comes back
  • meteor remove easy:search -- for testing
  • restart app, no indexes
  • meteor add easy:search
  • restart app -- see the problem index

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions