-
Notifications
You must be signed in to change notification settings - Fork 37
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
Error with deleting multiple documents #6
Comments
In order to link Typesense Documents to Laravel Models, the package uses With that said, the error you're getting is due to the Looking at your schema, maybe public function getScoutKey()
{
return $this->email;
}
public function getScoutKeyName()
{
return 'email';
} |
I see what you're saying, but this library also needs to work with the default configuration of Scout and models, which isn't to override the Scout Key. So yes what you're saying would in theory work (although But we also need to make it work with the default |
I've proposed #9 to fix this, and go back to deleting one document at a time in a loop. As much as I agree that it is a good optimisation to do if deleting multiple documents, it is more important for the library to work with normal defaults, and then try and optimise it. Just my opinion, at it at least allows a first proper version of the library to be tagged and released. This can then be further optimised if there is a way for it to work with the defaults. |
I agree that this is a bug - perhaps I wasn't clear in my previous reply. Anyway, thanks for the contributions and I will test your PR later today. |
Thanks @hi019 🙂 |
Description
Bulk deleting isn't working for me, I get an error like:
My collection schema is:
The issue might be that I haven't explicitly defined
id
as a field?For what it's worth, even the example in the readme doesn't indicate that we should have
id
as a field.Metadata
Typsense Version: 0.17.0 and 0.21.0 both tested
OS: Ubuntu 20.04.2 LTS
The text was updated successfully, but these errors were encountered: