【发布时间】:2017-06-30 11:24:52
【问题描述】:
我有这个 Elasticsearch NEST 查询:
var res = elastic.Search<SegmentRecord>(s => s.Index(esIndex).Aggregations(a => a.Terms("agg", x => x.Field(o => o.InstrumentName).Aggregations(a1 => a1.Terms("agg2", f => f.Field(y => y.GroupId))))));
如何循环遍历所有 InstrumentName 字段,并为每个字段循环遍历所有 GroupId 字段?
【问题讨论】:
标签: c# elasticsearch nest