lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tony Mullins <tonymullins...@gmail.com>
Subject Re: Aggregate TermFrequency on Result Grouping / Field Collapsing
Date Wed, 03 Jul 2013 06:14:23 GMT
Any suggestions please !


On Tue, Jul 2, 2013 at 3:24 PM, Tony Mullins <tonymullins.tm@gmail.com>wrote:

> Hi,
>
> Is it possible to perform aggregated termfreq(field,term) on Result
> Grouping ?
>
> I am trying to get total count of term's appearance in a document and then
> want to aggregate that count by grouping the document on one of my field.
>
> Like this
>
>
> http://localhost:8080/solr/collection1/select?q=iphone&wt=json&indent=true&group=true&group.field=url&fl=freq%3Atermfreq%28CommentX%2C%27iphone%27%29
>
> Problem is it returning only top level result (doc) in each group and thus
> the term frequency of that result (doc).
>
> How can I make it to sum the termfred() of all the documents per group ?
>
> Thanks,
> Tony
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message