You can get the term frequency (per document) for a term using the
termfreq() function query in the fl parameter:
fl=*,termfreq(field,'term')
-- Jack Krupansky
-----Original Message-----
From: JZ
Sent: Friday, August 23, 2013 7:43 AM
To: solr-user@lucene.apache.org
Subject: Query term count over a result set
Hi all,
I would like to get the total count of a query term of a result set. Is
there a way to get this?
I know there is a TermVectorComponent that does this per result (document),
but it would be far too expensive to take the sum over all documents for a
term given that term.
The LukeRequestHandler and the terms component only present the term counts
over the whole index.
Thanks!