Hi JZ,

You can use faceting component.

http://localhost:8080/solr/core/select?q=ahmet&wt=xml&facet=on&facet.field=title&facet.prefix=queryTerm





________________________________
 From: JZ <zhangju...@gmail.com>
To: solr-user@lucene.apache.org 
Sent: Friday, August 23, 2013 2:43 PM
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!

Reply via email to