We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
_client.Delete("id", s => s .Type("users") .Index("myindex") );
Throws exception
Could not dispatch IElasticClient.Delete() into any of the following paths: - /{index}/{type}/{id}
But should not
When i cast it to object (Delete<object>) then it works.
Delete<object>
The text was updated successfully, but these errors were encountered:
3312cc8
The Delete overload you are calling is actually:
_client.Delete<string>("id", s => s .Type("users") .Index("myindex") );
It then tries to infer the id from the string "id" which fails. The first argument in this case is also called obj and not id.
obj
id
I've added an convenience extension method for this usecase though (where providing a CLR type for the delete operation might not be needed)
Now you should be able to do:
.Delete("index","type","id", s => s)
The latter lambda to further describe the delete operation being optional.
Thanks for reporting @vovikdrg 👍
Sorry, something went wrong.
No branches or pull requests
Throws exception
But should not
When i cast it to object (
Delete<object>
) then it works.The text was updated successfully, but these errors were encountered: