Hello,

Ahmet, using the faceting component it gives me the document count for a
term, while I am interested in the term counts within a document for a
query term.

Jack, the functionquery termfreq returns indeed the term frequency per
document, but not over a result set.

How to do this over a result set?

I do not think there is something ready made, but perhaps a pointer to a
plugin or some code (or explanation why this does not exist yet) would be
great!

Thanks


On Fri, Aug 23, 2013 at 2:42 PM, Ahmet Arslan <iori...@yahoo.com> wrote:

> 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