ElasticSearch C# client (NEST): access nested aggregation results -
I have the following query (ElasticSearch C # client nest), nested aggregation Note: This generates the following query correctly: Which gives chase results: I do not know how I can see the "authDateStats" section. When I debug, I do not see any way to access the data. < Code> Query = _elasticClient.Search & lt; Auth5209 & gt; (=> .ize (0) .Aggregations (a => a .terms ("incidentID", t = & gt; t .Field (= & gt; f; incidentID) .Size (5) .Aggregations (A2 = & gt; a2 .Stats ( "authDateStats", S 1 = & gt; s1.Field (f = & gt; f.AuthEventDate))))));
{"size": 0, "aggs": {"incidentID": {"terms ": {" field ":" IncidentID "," size ": 5}," aggs ": {" authDateStats ": {" data ": {" field ":" authEventDate "}}}}}}
"collect": { "IncidentID": { "bucket": [{ "key": "0A63lEBl-0lEF- DC28-9503- FC28FE695C6D "," doc_count ": 233," authDateStats ": {" count ": 233," minute ": 1401167036075," Max ": 1401168969907," average "1,401,167,885,682.6782," Yoga ": 326472117364064}}] }}
have thought I'm guessing you already know this but you access nested Agrigreses, it's just the base class, you see it in the Nest You can. Kitambasebase Join in the debugger.
Comments
Post a Comment