You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When querying Elasticsearch with a Top Hits aggregation (using an aggregations data adapter), the plugin reads in the hits as a single field with a class type of org.elasticsearch.search.internal.InternalSearchHits. This prints out in the report as something like org.elasticsearch.search.internal.InternalSearchHits@524df193 rather than the actual contents of the hit.
Is there a way I'm missing to get the contents of the hit into the report?
Thanks very much!
The text was updated successfully, but these errors were encountered:
I'm closing this issue. I have seen what the confusion may have been for you - it's a common mistake - and I decided to write a blog entry that explains what is happening and how to properly insert aggregation results into a report.
Just a small thing, I think there's a typo in the blog post, I think the code snippet: new net.sf.jasperreports.engine.JRBeanArrayDataSource($F{top_tag_hits Hits}.getHits())
Should be: new net.sf.jasperreports.engine.data.JRBeanArrayDataSource($F{top_tag_hits Hits}.getHits())
Otherwise absolutely perfect, thank you very much again for the help!
Hi again,
When querying Elasticsearch with a Top Hits aggregation (using an aggregations data adapter), the plugin reads in the hits as a single field with a class type of
org.elasticsearch.search.internal.InternalSearchHits
. This prints out in the report as something likeorg.elasticsearch.search.internal.InternalSearchHits@524df193
rather than the actual contents of the hit.Is there a way I'm missing to get the contents of the hit into the report?
Thanks very much!
The text was updated successfully, but these errors were encountered: