Closed
Description
Elastic.Clients.Elasticsearch version:
8.13
Elasticsearch version:
.NET runtime version:
8.0
Operating system version:
Description of the problem including expected versus actual behavior:
The client throws an error when trying to execute a MultiSearch request with the following error message:
Elastic.Transport.UnexpectedTransportException: 'MultisearchBody' is a readonly type, used only on responses and does not support being written to JSON.
Steps to reproduce:
- Instantiate a MultiSearchRequest
- Instantiate a SearchRequestItem with valid parameters for MultiSearchHeader and MultiSearchBody.
- Append the SearchRequestItem to the Searches property of the request.
- Using the request as the input parameter, start a MultiSearch using client.MultiSearchAsync
Expected behavior
The client should perform a multisearch after the Request is Serialized.
Provide ConnectionSettings
(if relevant):
Provide DebugInformation
(if relevant):