Adding support for specifying indices and/or types to query.
Something like :
// query all indices and all types
context.Query().Where(x => x.Prop > 123).Select(x => new { x.Prop1, x.Prop2 })....
// query on specific indices (all types)
context.Indices("index1", "index2", "index3").Query().Where(x => x.Prop > 123).Select(x => new { x.Prop1, x.Prop2 })....
// query on specific types (all indices)
context.Types("type1", "type2", "type3").Query().Where(x => x.Prop > 123).Select(x => new { x.Prop1, x.Prop2 })....
// query on specific indices and types
context.Indices("index1", "index2", "index3").Types("type1", "type2", "type3").Query().Where(x => x.Prop > 123).Select(x => new { x.Prop1, x.Prop2 })....
Or :
var indices = new Indices("index1", "index2", "index3");
var types = new Types("type1", "type2", "type3");
// query all indices and all types
context.Query().Where(x => x.Prop > 123).Select(x => new { x.Prop1, x.Prop2 })....
// query on specific indices (all types)
context.Query(indices).Where(x => x.Prop > 123).Select(x => new { x.Prop1, x.Prop2 })....
// query on specific types (all indices)
context.Query(types).Where(x => x.Prop > 123).Select(x => new { x.Prop1, x.Prop2 })....
// query on specific indices and types
context.Query(indices, types).Where(x => x.Prop > 123).Select(x => new { x.Prop1, x.Prop2 })....