Did you try expand.rows parameter for how many items to include in each group?
https://solr.apache.org/guide/8_7/collapse-and-expand-results.html

Regards,
   Alex.

On Thu, 20 May 2021 at 13:02, gnandre <arnoldbron...@gmail.com> wrote:
>
> Hi,
>
> I am using Solr 8.5.2 (non-SolrCloud) mode. It is a non-sharded scenario. I
> am trying to collapse the resultset based on one of the string fields (say
> X). Collapse query works as expected. It collapses the result set by
> excluding the documents that have the same field X and retains only the top
> raking document from each collapsed group.
>
> Now, I want to expand the collapsed results to achieve similar
> functionality like result grouping. However, when I add expand=true to
> query, the returned expanded section doesn't include all collapsed groups.
> It also doesn't include all collapsed documents for the collapsed groups
> returned. Is there some issue with the 'expand' feature?

Reply via email to