Nested AND conditiongroups break facet results

Created on 4 November 2024, 22 days ago

Setup

  • Solr version: 9.6.1
  • Drupal Core version: 10.3.6
  • Search API version: 8.x-1.35
  • Search API Solr version: 4.3.5
  • Configured Solr Connector: Solr Cloud with Basic Auth

Issue

When creating facets as block (both using 2.x and 3.x facets), there is only 1 conditiongroup in the query, which works as expected.

When creating facets as exposed filters, Views adds an extra nested AND conditiongroup.
This causes wrong active facets and facetcounts.

I debugged this in "src/Plugin/search_api/backend/SearchApiSolrBackend.php"

Facets as a block (works as expected)

ConditionGroup structure:

Filter_Queries output:

Facets Exposed Filters (wrong active facets and facet counts)

ConditionGroup structure:

Filter_Queries output:

It looks like "reduceFilterQueries" is the cullprit, but I have no fix right now.

🐛 Bug report
Status

Active

Version

4.3

Component

Code

Created by

🇧🇪Belgium StryKaizer Belgium

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024