Stack Overflow is a community of 4.7 million programmers, just like you, helping each other.

Join them; it only takes a minute:

Sign up
Join the Stack Overflow community to:
  1. Ask programming questions
  2. Answer and help your peers
  3. Get recognized for your expertise

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?

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.