JSON Facet Count All Information

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

JSON Facet Count All Information

kamaci
Hi,

I have a multivalued field at which I store some metadata. I want to see
top 4 metadata at my documents and also total metadata count. I run that
query:

q=metadata:[*+TO+*]&rows=0&json.facet={top_tags:{type:terms,field:metadata,limit:4,mincount:1}}

However, how can I calculate total term count in a multivalued field beside
running a json facet on that?

Kind Regards,
Furkan KAMACI