I'd think adding a new response attribute would be more flexible and
powerful, thinking about clients, UIs, etc.

Otis
--
Solr & ElasticSearch Support
http://sematext.com/





On Thu, Jan 17, 2013 at 10:15 AM, Tomás Fernández Löbbe <
tomasflo...@gmail.com> wrote:

> Bu Amit is right, when you use group.main, the number of groups is not
> displayed, even if you set grop.ngroups.
>
> I think in this case NumFound should display the number of groups instead
> of the number of docs matching. Other option would be to keep "numFound" as
> the number of docs matching and add another attribute to the response that
> shows the number of groups.
>
>
> On Thu, Jan 17, 2013 at 11:51 AM, denl0 <david.vandendriess...@gmail.com
> >wrote:
>
> > There's a parameter to enable that. :D
> >
> > In solrJ
> >
> > solrQuery.setParam("group.ngroups", true);
> >
> > http://wiki.apache.org/solr/FieldCollapsing
> >
> >
> >
> > --
> > View this message in context:
> >
> http://lucene.472066.n3.nabble.com/group-ngroups-behavior-in-response-tp4033924p4034187.html
> > Sent from the Solr - User mailing list archive at Nabble.com.
> >
>

Reply via email to