"OR" operator not working after search_api:1.26

Created on 11 October 2022, about 2 years ago
Updated 14 March 2023, almost 2 years ago

Since the latest patch from https://www.drupal.org/project/search_api/issues/3029582 πŸ› Fix handling of Views filter groups Fixed was rolled out, views_contextual_filters_or is not able to apply the "OR" operator anymore to the views query.

The code around this is a bit beyond me or else I would have written a patch πŸ˜…

Just thought I'd at least mention it and hopefully someone could write something.

My temporary solution is to lock search_api module at version 1.25

πŸ› Bug report
Status

Needs work

Version

1.4

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom Ben25

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.

  • Status changed to Closed: outdated almost 2 years ago
  • πŸ‡΅πŸ‡ΉPortugal dxvargas

    Search API was already fixed and the issue here should be fixed when using the updated version.
    I close this issue, feel free to reopen if needed.

  • Status changed to Needs work almost 2 years ago
  • πŸ‡ΊπŸ‡ΈUnited States earthday47 New York

    I still have an issue, but it's the other way around - now views_contextual_filters_or is applying the OR to the parent condition, and overriding all other conditions.

    For example, if I have Location as a single select, and Type as a multi-select, once I select a value for Type it will ignore Location and show results for all Locations.

    Happy to elaborate with examples to help resolve.

Production build 0.71.5 2024