-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Description
Elastic.Clients.Elasticsearch version: 8.1.1
Elasticsearch version: 8.7.0
.NET runtime version: .Net 7
Operating system version: Windows 10
Description of the problem including expected versus actual behavior:
When deserializing a wild card search query using the RequestResponseSerializer.Deserialize method on ElasticsearchClient, the value of query is not being (although the name of the filter is). The expected outcome, to my understanding, is that the WildcardQuery value property should contain the provided search query.
Steps to reproduce:
- Create any wildcard query
- Serialize request to MemoryStream
- Create a search request using
client.RequestResponseSerializer.Deserialize - Inspect the SearchRequest.Query.Filter.Value
- The value of the filter here is null

Please see working example of issue https://github.com/Leandore/ElasticSearch8/blob/deserialize-issue-investigation/ESClientExample/Program.cs#L61
Expected behavior
When providing a wildcard filter query, the value of the search query should be set according to the input.
Please see helper method to demonstrate missing value
https://github.com/Leandore/ElasticSearch8/blob/deserialize-issue-investigation/ESClientExample/Program.cs#L26-L37