ElasticSearch C# client (NEST): access nested aggregation results -


I have the following query (ElasticSearch C # client nest), nested aggregation Note:

 < 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))))));  

This generates the following query correctly:

  {"size": 0, "aggs": {"incidentID": {"terms ": {" field ":" IncidentID "," size ": 5}," aggs ": {" authDateStats ": {" data ": {" field ":" authEventDate "}}}}}}  

Which gives chase results:

  "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}}] }}  

I do not know how I can see the "authDateStats" section. When I debug, I do not see any way to access the data.

Enter image details here

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

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -