-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Cannot use RawJsonQuery #8195
Comments
@flobernd looks like the issue is in one of your generated files, so I cannot just change that. Can you please fix it? I assume that for raw json, we shouldn't use |
Hi @gpetrou, the var q = new RawJsonQuery("term", "{ \"fieldname\": \"value\" }"); Would that work for you? Special handling in the generator is possible, but I'd like to avoid that. Btw.: In general you should prefer not using the |
There are still cases such as #8169 (comment) where this seems to be needed. I would expect this to work similarly to |
Yes, this case would work. |
There is well no RawJsonQuery constructor that accepts two params at least for version 8.13.12 that I use |
@tabareh Yes, this will be available after I released a fix. |
Elastic.Clients.Elasticsearch version: 8.13.10
Elasticsearch version: 8.13.2
.NET runtime version: 8.0
Operating system version:
Description of the problem including expected versus actual behavior:
Try to execute the following code:
It results in:
Therefore there is a parsing_exception.
Steps to reproduce:
1.
2.
3.
Expected behavior
A clear and concise description of what you expected to happen.
Provide
ConnectionSettings
(if relevant):Provide
DebugInformation
(if relevant):The text was updated successfully, but these errors were encountered: