-
Notifications
You must be signed in to change notification settings - Fork 8
Force to set default_language and language_override when creating index #12
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
Comments
please, am having same error. How did you include "{ default_language: 'en', language_override: 'en' }" ? |
@gabrielstuff Thanks for reporting. Which MongoDB version do you use? |
Doc for v3.6 states that What does the thrown error say? |
I'm using Mongoose v5.0.0. The error is TypeError: service.Model.index is not a function |
Hello, any solution to this? |
Use MongoDB instead of mongoose, or read the mongoose documentation on how you set the text index. |
Tried using only mongoDB adapter, full text search does not work, it does not return any query search result |
Hello,
While creating text index for fields, I was not able to do it without specifying
{ default_language: 'en', language_override: 'en' }
In the documentation, you appear to simply tell the user to:
service.Model.createIndex({ username: 'text' })
which trows an error.Maybe it is related to mongo version, but I suggest to explain a bit more this part.
Thanks for the great work
The text was updated successfully, but these errors were encountered: