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 shreck <cm...@gmail.com> on 2018/08/20 09:30:27 UTC
why the group feature is in QueryComponet ,but GroupComponent ?
--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html
Re: why the group feature is in QueryComponet ,but GroupComponent ?
Posted by shreck <cm...@gmail.com>.
thanks, i get it. i just want to know the rule how to design.
--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html
Re: why the group feature is in QueryComponet ,but GroupComponent ?
Posted by Andrea Gazzarini <a....@sease.io>.
A search component is something which contributes to the overall
returned response. With "contributes" I mean "adds something".
The highlighting is an example of such behavior: it depends on the query
component and on top of a set of search results it enriches the response
with an additional section ("highlighting").
The context is not the same when you enable the grouping feature, as it
doesn't contribute with an additional section, it actualy changes the
query response shape. That's the reason why (I think) it is not a
SearchComponent: you should consider that more like a variant of the
usual query behavior.
Just curiosity: can I ask you why you care about that? Do you have a use
case where you need both raw and grouped docs? Again, just curiosity.
Best,
Andrea
On 20/08/18 11:30, shreck wrote:
>
>
>
> --
> Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html