Hi, I am looking for a way to get the top terms for a query result.
Faceting does not work since counts are measured as documents containing a term and not as the overall count of a term in all found documents: http://localhost:8983/solr/master/select?q=type%3A7&rows=1&wt=json&indent=true&facet=true&facet.query=type%3A7&facet.field=albody&facet.method=fc "facet_counts":{ "facet_queries":{ "type:7":156}, "facet_fields":{ "albody":[ "der",73, "in",68, "betreff",63, ... Using http://wiki.apache.org/solr/TermVectorComponent an counting all frequencies manually seems to be the only solution by now: http://localhost:8983/solr/tvrh/?q=type:7&tv.fl=albody&f.albody.tv.tf=true&wt=json&indent=true "termVectors":[ "uniqueKeyFieldName","ukey", "798_7_0",[ "uniqueKey","798_7_0", "albody",[ "der",[ "tf",5], "die",[ "tf",7], ... Does anyone know a better and more efficient solution? Regards, Kai Gülzau