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
Schema.index text weight types #10586
Comments
could you provide what version of note: if 4.x is installed, try downgrading to |
I've just had a similar problem with mongoose |
@rlawisch could you either open another issue or provide the code where you tried to add this option and the error? |
Sure, I will document it more thoroughly and open an issue properly |
@rlawisch this looks like a bug on your end, you're specifying |
@vkarpov15 I think you mean to mention @AlexZeDim |
@vkarpov15 can it be reopened, please? Guess you missed some descriptions from my issue. In And the original syntax from the beginning was: @hasezoey |
sorry if this was not clear, i meant what |
Versions of
package.json
andtsconfig.json
:Also, I am using Node.js: 16.0.N with Nestjs (8.0) but I guess it doesn't matter since the problem isn't in there.
I'd to ask a question about text indexes and probably report a bug.
I have a problem with build a text index, with the following syntax:
Since
5.13.7
version of mongoose gives me the following type error via IDE:But before updating to mongoose 5.13 I was using 5.12,N and it was actually fine. I have tried various syntaxes according to
*.d.ts
files inside the mongoose itself, with using of `collection object and so on, but it still gives me errors. So the question is, is it a bug? How exactly should I build text indexes with custom weight on the fields right now?The text was updated successfully, but these errors were encountered: