PHP Notice Array to string conversion when query contains negations

Created on 21 February 2022, almost 3 years ago
Updated 4 July 2024, 5 months ago

Problem/Motivation

Searches containing negations result in a PHP notice:

Notice: Array to string conversion in Drupal\search_api_solr\Plugin\search_api\backend\SearchApiSolrBackend->setSpellcheck()

Steps to reproduce

Perform a search with spellcheck enabled where the query contains negated terms, e.g. "-hello world"

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

4.0

Component

Code

Created by

🇳🇱Netherlands casey

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.71.5 2024