Autocomplete not working

Created on 13 August 2024, 4 months ago
Updated 18 August 2024, 4 months ago

Problem/Motivation

On Drupal 10.3.2 and Search API 8.x-1.9
Autocomplete search box not returning results, throwing error:

Symfony\Component\HttpKernel\Exception\BadRequestHttpException: Unexpected value for parameter "filter": expecting "array", got "string". in Symfony\Component\HttpKernel\HttpKernel->handle() (line 83 of /var/www/html/vendor/symfony/http-kernel/HttpKernel.php).

Steps to reproduce

  1. Setup the Search API with Apache Solr search and add a couple of fields for indexing
  2. Create a view for the search index
  3. Enable the Search API autocomplete module
  4. Create a search view with the Search API index add the "Search: Fulltext search" filter and expose this filter
  5. Enable this view in the "Autocomplete" tab of the Search API index which we have created.
  6. Type some keywords to search for the content you have indexed as Fulltext

Proposed resolution

Remaining tasks

Issue fix.

User interface changes

NA

API changes

Data model changes

🐛 Bug report
Status

Postponed: needs info

Version

1.9

Component

User interface

Created by

🇮🇳India prashant.c Dharamshala

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

Comments & Activities

  • Issue created by @prashant.c
  • Status changed to Postponed: needs info 4 months ago
  • 🇦🇹Austria drunken monkey Vienna, Austria

    Thanks for reporting this issue.
    It seems we’d have had more reports by now if this was a general problem, so I suspect this is somewhat specific to your setup.
    Are you able to obtain a stack trace for the original exception? (The cited line 83 of /var/www/html/vendor/symfony/http-kernel/HttpKernel.php just contains code wrapping an existing exception, so is unfortunately not very useful.)

Production build 0.71.5 2024