Since Pantheon is making changes to the Solr service, we will need to update our automatic solr configuration (or disable it).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dsnopek’s picture

Version: 7.x-1.0-rc5 » 7.x-1.x-dev
Component: Code » Search
Assigned: populist » dsnopek
Status: Active » Needs review
FileSize
3.77 KB

Attached is a patch that will fix the automatic setup of Solr on Pantheon!

It does the following things:

  1. Only enables the Solr server and index if we were successful in posting the schema. This is the main reason this has been broken: it was enabling them even if it couldn't post the schema, which was mostly likely because the Solr addon wasn't enabled in the Pantheon dashboard.
  2. Will enable the Solr server and index if the user manual posts the schema later. The pantheon_apachesolr module which we enable on Pantheon will bug them about posting the schema if it wasn't successful at install, and so we hook into the manual process via a hook_form_alter().
  3. Makes it so that enabling the Solr server and index doesn't cause the Feature to become overridden. But it will still be shown as overridden on the Search API admin screens, which I think is a good thing! The user can revert back to the "factory settings" but won't pollute the Feature.

My testing so far has looked good!

dsnopek’s picture

Title: Update Automatic Panopoly Solr Configuration » Update automatic configuration of SOLR on Pantheon

Changing title since this is only about automatic configuration on Pantheon.

  • dsnopek committed fbdfa8c on 7.x-1.x
    Update Panopoly Search for #2144779 by dsnopek: Update automatic...
dsnopek’s picture

Status: Needs review » Fixed

Been testing this for over a month - committed!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.