The time we implemented the feature, there was no straight forward solution.

What we did is to facet on the grouped by field and counting the facets.
This would give you the distinct count for the groups.

You may also want to check the Patch @
https://issues.apache.org/jira/browse/SOLR-2242, which will return the
facet counts and you need to count it by yourself.

Regards,
Jayendra

On Tue, Sep 13, 2011 at 1:27 AM, Ahson Iqbal <mianah...@yahoo.com> wrote:
> Hi
>
> Is it possible to get number of groups that matched with specified query.
>
> like let say there are three fields in index
>
> DocumentID
> Content
> Industry
>
>
> and now i want to query as +(Content:is Content:the)
> group=true&group.field=industry
>
> now is it possible to get how many industries matched with specified query.
>
> Please help.
>
> Regards
> Ahsan
>

Reply via email to