This is my query
{
"query":{
"match_all":{
}
},
"size":20,
"aggs":{
"CompanyName.raw":{
"terms":{
"field":"CompanyName.raw",
"size":20,
"order":{
"_count":"desc"
}
}
}
}
}
When I send it directly to ElasticSearch the result contains an array aggregations['CompanyName.raw']['buckets']
.
However, when I issue the same request with NEST this array is empty.
using (MemoryStream ms = new MemoryStream())
{
Client.RequestResponseSerializer.Serialize<ISearchResponse<ProductPurchasing>>(r, ms);
ms.Position = 0;
using (StreamReader sr = new StreamReader(ms))
{
string responseJson = sr.ReadToEnd();
}
}
Where has this gone? Surely this is a severe bug?