I'm doing a multi-index search (indexA, indexB...), where each index correspond to a different class in C# (A, B...)
var x = elasticsearch.Search<dynamic>(s => s.AllIndices().AllTypes());
Is there a smart way to cast/deserialize the results to the corresponding data type/class base on the index name automatically?