You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Liu Bo <di...@gmail.com> on 2014/01/02 05:06:41 UTC
Re: Grouping results with group.limit return wrong numFound ?
hi @Ahmet
I've thought about using group.ngroups=true , but when you use
group.main=true, there's no "ngroups" field in the response.
and according to http://wiki.apache.org/solr/FieldCollapsing, the result
might not be correct in solrcloud.
I don't like using facet for this but seems have to...
On 1 January 2014 00:35, Ahmet Arslan <io...@yahoo.com> wrote:
> Hi Tasmaniski,
>
> I don't follow. How come Liu's faceting workaround and n.groups=true
> produce different results?
>
>
>
>
>
>
> On Tuesday, December 31, 2013 6:08 PM, tasmaniski <ta...@gmail.com>
> wrote:
> @kamaci
> Ofcourse. That is the problem.
>
> "group.limit is: the number of results (documents) to return for each
> group."
> NumFound is number of total found, but *not* sum number of *return for each
> group.*
>
> @Liu Bo
> seems to be the is only workaround for problem but
> it's to much expensive to go through all the groups and calculate total
> number of found/returned (I use PHP for client:) ).
>
> @iorixxx
> Yes, I consider that (group.ngroups=true)
> but in some group I have number of found result lesser than limit.
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Grouping-results-with-group-limit-return-wrong-numFound-tp4108174p4108906.html
>
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>
--
All the best
Liu Bo
Re: Grouping results with group.limit return wrong numFound ?
Posted by tasmaniski <ta...@gmail.com>.
Hi and thanks all,
There is no easy solution implemented in Solr for my problem.
I will try "namedistinct" you said, might improve workaround solution.
Perhaps, the main problem are the names :)
because *group.limit* do same as basic rows
<http://wiki.apache.org/solr/CommonQueryParameters#rows> and
group.offset do same as basic start
<http://wiki.apache.org/solr/CommonQueryParameters#start> .
Should be called group.rows and group.start.
So, group.limit isn't real limit, it's only NumRows to return.
offtopics:
Maybe, we have a bug.
I noticed that *group.offset* doesn't work if we use *group.main=true*
--
View this message in context: http://lucene.472066.n3.nabble.com/Grouping-results-with-group-limit-return-wrong-numFound-tp4108174p4109316.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Grouping results with group.limit return wrong numFound ?
Posted by Ahmet Arslan <io...@yahoo.com>.
Hi Liu,
Aha now I see ... old format does not display that info.
For faceting solution https://issues.apache.org/jira/browse/SOLR-2242 could be relevant.
By the way how are these things in CollapsingQueryParser?
https://cwiki.apache.org/confluence/display/solr/Other+Parsers#OtherParsers-CollapsingQueryParser?
On Thursday, January 2, 2014 6:07 AM, Liu Bo <di...@gmail.com> wrote:
hi @Ahmet
I've thought about using group.ngroups=true , but when you use
group.main=true, there's no "ngroups" field in the response.
and according to http://wiki.apache.org/solr/FieldCollapsing, the result
might not be correct in solrcloud.
I don't like using facet for this but seems have to...
On 1 January 2014 00:35, Ahmet Arslan <io...@yahoo.com> wrote:
> Hi Tasmaniski,
>
> I don't follow. How come Liu's faceting workaround and n.groups=true
> produce different results?
>
>
>
>
>
>
> On Tuesday, December 31, 2013 6:08 PM, tasmaniski <ta...@gmail.com>
> wrote:
> @kamaci
> Ofcourse. That is the problem.
>
> "group.limit is: the number of results (documents) to return for each
> group."
> NumFound is number of total found, but *not* sum number of *return for each
> group.*
>
> @Liu Bo
> seems to be the is only workaround for problem but
> it's to much expensive to go through all the groups and calculate total
> number of found/returned (I use PHP for client:) ).
>
> @iorixxx
> Yes, I consider that (group.ngroups=true)
> but in some group I have number of found resultĀ lesser than limit.
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Grouping-results-with-group-limit-return-wrong-numFound-tp4108174p4108906.html
>
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>
--
All the best
Liu Bo