Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create text index on all fields in database #35

Closed
jvdzwaan opened this issue Jul 3, 2015 · 1 comment
Closed

Create text index on all fields in database #35

jvdzwaan opened this issue Jul 3, 2015 · 1 comment

Comments

@jvdzwaan
Copy link
Member

jvdzwaan commented Jul 3, 2015

Full text search in MongoDB requires a text index. To create one that searches all fields use command:
db.recipies.createIndex({ "$**": "text" }, { name: "TextIndex" }, {language: "none"})

@robintw
Copy link
Contributor

robintw commented Aug 28, 2015

Unnecessary for TinyDB (though there could be potential performance issues later on - but that's a separate issue).

@robintw robintw closed this as completed Aug 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants