I want to do a search matching multiple values ββ(an array of values) as follows:
var result1 = _client.Search<type1>(s => s .Fields(f => f.trip_id) .Query(q => q .Terms(t => t.arg1, value1)).Take(_allData)) .Documents.Select(d => d.arg2).ToArray(); var result2 = _client.Search<type2>(s => s .Query(q => q .Terms(t => t.arg3, result1)) .Take(_allData) ).Documents.Select(s => s.ar3).ToList();
How can i do this? I thought about the verge, but I do not understand how I can do this. The only way that works now is with the foreach iterator, which is not very efficient ...
Thank you for your help.
c # elasticsearch nest
Orelus
source share