lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <erickerick...@gmail.com>
Subject Re: Aggregate TermFrequency on Result Grouping / Field Collapsing
Date Wed, 03 Jul 2013 11:41:21 GMT
I don't think you can, thus the silence. But why do you want
to do this thing? Smells like an XY problem, you've asked
how to do a specific thing without stating the problem. Perhaps
there's a better approach that _is_ do-able.

Best
Erick


On Wed, Jul 3, 2013 at 2:14 AM, Tony Mullins <tonymullins.tm@gmail.com>wrote:

> 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