Closed ahazelwood closed 1 week ago
Hi @ahazelwood,
the SourceIncludes
value gets serialized in the request url and not the request body. If you - for some reason - need the includes to be in the body, please use this method instead:
.Source(new SourceConfig(new SourceFilter
{
Includes = f
})
Both methods are causing the correct filters to be applied.
Please let me know, if that solved your issue.
Yes. That worked great. Looking forward to more documentation that details how to effectively use all of the capabilities that exist in the new client.
Elastic.Clients.Elasticsearch version: 8.15.10
Elasticsearch version: 8.15.1
.NET runtime version: 8.0
Operating system version: Windows 12
Description of the problem including expected versus actual behavior: A clear and concise description of what the bug is.
In the previous NEST client, I could issue a query like:
and the resulting json would look like:
In the new ElasticSearch client (after searching through various issues, as well as the code), I am trying to replicate this like the following, but am not getting the includes in the resulting json.
Any help would be appreciated as this is one of the last pieces of our client that needs to be updated, and we don't want to bring back all fields from our Search document, but still want to rely upon it for reference within various other Expressions.