Pantheon Search still not able to index content

Created on 4 January 2025, 27 days ago

Problem/Motivation

For the majority of sites we've been able to upgrade to the most recent versions of SearchApi+SearchApiSolr+SearchApiPantheon without issues (though sometimes deploying to the live environment requires kicking the server a few more times).

I have one very problematic site, and the Pantheon helpdesk wasn't much help (the say that this is an application issue and not a platform issue. I disagree).

Steps to reproduce


$ SITE="my-site"
$ terminus drush $SITE.pr-38 -- search-api-solr:reload pantheon_solr8
Server not reloaded: 500 Internal Server Error
Reloading core for Pantheon Search (pantheon_solr8) failed.
$ terminus drush $SITE.pr-38 -- search-api:clear
$ terminus drush $SITE.pr-38 -- search-api-pantheon:force-cleanup pantheon_solr8
$ terminus drush $SITE.pr-38 -- search-api-pantheon:postSchema pantheon_solr8 /code/web/modules/contrib/search_api_solr/jump-start/solr8/config-set/
$ terminus drush $SITE.pr-38 -- search-api:reset-tracker
$ terminus drush $SITE.pr-38 -- search-api:index
...
Exception writing document id 3kxjhk-content-entity:media/1006:en to the index; possible analysis error: cannot change field \"tm_X3b_en_name\" from index options=DOCS_AND_FREQS_AND_POSITIONS to inconsistent index options=DOCS_AND_FREQS_AND_POSITIONS_AND_OFFSETS
...

Additionally, if I visit `/admin/config/search/search-api/server/pantheon_solr8/pantheon-admin`
"The application did not respond in time." but no errors in watchdog.

Any suggestions for what to try next?

💬 Support request
Status

Active

Version

8.2

Component

Code

Created by

🇲🇽Mexico dalin 🇨🇦, 🇲🇽, 🌍

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

Comments & Activities

  • Issue created by @dalin
  • 🇵🇭Philippines danreb

    Hi Dalin,

    This looks like the multi-dev environment has been loaded with a bad Solr instance, to resolve this, you need to introduce a trivial change in pantheon.yml file that will provision a fresh Solr backend.

    Note: adding just a dummy commit will not work (e.g. adding a new line or space)

    What works to provision a fresh Solr instance is to have a trivial change (e.g. Changing PHP version temporarily)

    He're an example Workflow:

    Once the Workflow is finish, repost the Solr Schema on the CMS admin page, then reset the index tracker, after that re-index the site.

    You can revert the PHP version again after this.

  • 🇵🇭Philippines danreb

    Additional notes:

    Please wait at least 5 minutes after reposting the Solr Schema for the changes to reflect as Pantheon platform is checking configuration every 5 minutes.

  • 🇵🇭Philippines danreb

    Closing this. Handled in Pantheon via a support ticket already.

  • 🇲🇽Mexico dalin 🇨🇦, 🇲🇽, 🌍

    Your solution worked great. Thanks.

Production build 0.71.5 2024