NET-Client 8.19: Serialisation of QueryDescriptor

JanSearch
Fri, 29 Aug 2025 15:42:36 +0000
Elasticsearch

Hi there,

I have another question regarding serialisation. After updating to version 8.19.4, serialisation of QueryDescriptor does not work as before.

“Serialization in version 9.0 has been completely overhauled” which could mean that in corresponding version 8.19.0 it has the same behavior.

Example:

QueryDescriptor<Object> queryDescriptor = new QueryDescriptor<Object>(new Query());
queryDescriptor = queryDescriptor.MatchAll();
ElasticsearchClient client = new ElasticsearchClient(new ElasticsearchClientSettings());
String queryString = client.ElasticsearchClientSettings.RequestResponseSerializer.SerializeToString(queryDescriptor);

queryString: {}

This worked with 8.18 so I guess something has changed. Can I achieve to serialise QueryDescriptor like before or is this not supported any more / so far?

Thanks in advance and best regards

Jan

3 posts - 2 participants