Multiple solr facets - OR conjunction

Created on 24 December 2020, over 3 years ago
Updated 6 May 2024, about 2 months ago

I am not sure if this is the right place to log this - please feel free to move this or comment and close if appears invalid.

Problem/Motivation

Allow OR conjunction between different SOLR facets.

Facets Version: 8.x-1.6
Search API Version: 8.x-1.18
Search API Solr Version: 4.1.10
Search API Solr Admin Version: 4.1.10

Steps to reproduce

We have a 4 level taxonomy Location and the hierarchy is as Region > Country > City > Office.

 - APAC
   - India
   -- Mumbai
   --- Mumbai Office
   - Japan
   -- Tokyo
   --- Tokyo Office

The content type JOB has 4 separate fields to capture the respective information. The application is also using SOLR to allow search for end user. The taxonomy is indexed into solr as region, county, city & office (separate indexes).
The application is also utilizing 4 separate facets to enhance search experience.

The observation is that when user selects input from 2 different facets (say one region APAC and one city Tokyo) the result is obtained based on AND operator. I believe the facets are setting up the search to narrow down.
Please note there is no issue with multiple inputs within a single facet - It works with OR operator.

Is there an option to allow OR operator among different facets. Say, a user selects country India and city Tokyo, is there a feasibility to fetch in data tagged with India OR Tokyo. At the moment, I get none as it looks for India AND Tokyo.

Proposed resolution

NA

Remaining tasks

NA

User interface changes

NA

API changes

NA

Data model changes

NA

I would mention that I am not sure if this request is even valid but some guidance/solution or workaround would be highly appreciated.

Thanks.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇮🇳India akishankar India

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024