Any schema backend produces error "undefined field index_id" on index status page

Created on 15 February 2019, about 6 years ago
Updated 17 July 2024, 9 months ago

Using the "Any schema" backend to query a non-Drupal Solr server leads to the error message "undefined field index_id" from Solr on the index status page.

Using the index in a view works with later versions of search_api_solr (2.1 doesn't work, 2.5 does work).

The attached patch removes the special treatment of the status query in SearchApiSolrAnySchemaBackend, as suggested by mkalkbrenner.

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany robcast

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.

  • πŸ‡ΊπŸ‡ΈUnited States caesius

    Leaving a quick comment here as this is one of only two Google search results for "undefined field index_id" although my issue did not appear to be related to this (fixed) bug.

    Per comment 12 on πŸ› Exception: "400" Status: undefined_field_index_id: undefined_field_index_id Fixed , uninstalling and reinstalling search_api and search_api_solr resolves "undefined field index_id" error for me on Drupal 10.

  • πŸ‡ΊπŸ‡ΈUnited States joshua.boltz

    I just ran into this after upgrading my Docksal Solr version from 7 to 9.3. I noticed Drupal was not indexing. Then, I noticed the 400 error about the undefined index_id.

    I uninstalled the Search API Solr module and re-installed, and now it is working as expected and indexing.

Production build 0.71.5 2024