Hi Liu,

Did you consider using group.ngroups=true ? It should give the same number as 
your faceting solution. 


Ahmet


On Tuesday, December 31, 2013 10:22 AM, Liu Bo <diabl...@gmail.com> wrote:
Hi

I've met the same problem, and I've googled it around but not found direct
solution.

But there's a work around, do a facet on your group field, with parameters
like

   <str name="facet">true</str>
   <str name="facet.field">your_field</str>
   <str name="facet.limit">-1</str>
   <str name="facet.mincount">1</str>

and then count how many facted pairs in the response. This should be the
same with the number of documents after grouping.

Cheers

Bold





On 31 December 2013 06:40, Furkan KAMACI <furkankam...@gmail.com> wrote:

> Hi;
>
> group.limit is: the number of results (documents) to return for each group.
> Defaults to 1. Did you check the page here:
> https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=32604232
>
> Thanks;
> Furkan KAMACI
>
>
> 25 Aralık 2013 Çarşamba tarihinde tasmaniski <tasmani...@gmail.com> adlı
> kullanıcı şöyle yazdı:
> > Hi All, When I perform a search with grouping result in a groups and do
> limit
> > results in one group I got that *numFound* is the same as I didn't use
> > limit.looks like SOLR first perform search and calculate numFound and
> that
> > group and limit the results.I do not know if this is a bug or a feature
> > :)But I cannot use pagination and other stuff.Is there any workaround or
> I
> > missed something ?Example:I want to search book title and limit the
> search
> > to 3 results per one publisher.q=book_title: solr
> > php&group=true&group.field=publisher&group.limit=3&group.main=trueI have
> for
> > apress publisher 20 results but I show only 3 that works OKBut in
> numFound I
> > still have 20 for apress publisher...
> >
> >
> >
> > --
> > View this message in context:
>
> http://lucene.472066.n3.nabble.com/Grouping-results-with-group-limit-return-wrong-numFound-tp4108174.html
> > Sent from the Solr - User mailing list archive at Nabble.com.
>



-- 
All the best

Liu Bo

Reply via email to