Solr 4.x: Unknown query parser 'terms'

Created on 8 November 2023, about 1 year ago
Updated 11 January 2024, about 1 year ago

Respect the submission guidelines above! Drupal.org issue forks cause additional work for the project maintainer!

Setup

  • PHP: 8.2.11
  • Solr version: 4.5.1
  • Drupal Core version: 10.1.4
  • Search API version: 8.x-1.30
  • Search API Solr version: 4.3.0
  • Search API Solr Legacy version: 4.3.0
  • Configured Solr Connector: Standard
  • Connector Workarounds: Determine automatically

Issue

The following error message is added to dblog because Solr 4.5.1 does not support the terms query parser. Later versions like Solr 6.6 or more recent support this query parser type.

Drupal\search_api_solr\SearchApiSolrException: Solr endpoint http://solr:8983/ bad request (code: 400, body: Unknown query parser 'terms', message: Solr HTTP error: OK (400) {"responseHeader":{"status":400,"QTime":2},"error":{"msg":"Unknown query parser 'terms'","code":400}} ). in Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase->handleHttpException() (line 1089 of C:\xampp\htdocs\cia-drupal\docroot\modules\contrib\search_api_solr\src\SolrConnector\SolrConnectorPluginBase.php)

Steps

  1. Go to: /admin/config/system/cron
  2. Click Run cron button

Recommendation

Based on https://www.drupal.org/project/search_api_solr β†’ , Solr 4.5.1 which is EOL but is still on the support matrix for search_api_solr. After looking into this, perhaps at least a wont-fix issue would be useful. Other than the above error, the 4.5.1 support is seems to work just fine.

πŸ› Bug report
Status

Active

Version

4.3

Component

Solr Legacy

Created by

πŸ‡ΊπŸ‡ΈUnited States kwiechmann

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

Comments & Activities

Production build 0.71.5 2024