Perhaps, SolrIndexSearcher.getProcessedFilter() may do a better job
detecting and handling postFilter-only filter queries.
Markos, as a workaround you may use a few queries, like with&without
filter, etc.

On Wed, May 13, 2026 at 11:17 AM Markos Volikas <[email protected]> wrote:

> Hi everyone,
>
> I'm getting the following error (full trace attached) when combining the
> collapse query parser with the AND operator + tagging:
>
> Query CollapsingPostFilter(field=id, nullPolicy=ignore,
> GroupHeadSelector(selectorText=score, type=SCORE), size=100000) does not
> implement createWeight
>
> The query parameters I've been using are:
>
> "q":"*:*",
> "q.op":"AND",
> "fq":"{!tag=foo}{!collapse field=id}",
>
> Changing the operator to OR *or* removing the tag resolves the issue.
>
> You can reproduce by creating a collection with the default schema and
> indexing some sample data for testing the collapsing. I've tested with Solr
> 10 and Solr 7, and both have the same issue.
>
> Do you know if this is expected behavior? And if so, why?
>
> Thanks,
>
> Markos
>


-- 
Sincerely yours
Mikhail Khludnev

Reply via email to