Solr settings cannot be exportable with features if the environments used in search pages are different in development server and production server, because in hook_apachesolr_search_default_searchers the env_id component of each search page does not accept a default value to get it from the variable apachesolr_default_environment.

I have two solr environments exported with features, Production (working on my production server) and Development (to use in my local development server). To have 'production' as the 'env_id' of my web search page forces me to manually change it after reverting features in my development server.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Cinedin’s picture

jsst’s picture

This patch works fine on 7.x-1.8, should go in a stable release.

jsst’s picture

Status: Needs review » Reviewed & tested by the community

  • japerry committed b59c37c on 7.x-1.x authored by Cinedin
    Issue #2448615 by Cinedin: Default environment selection in search page...
japerry’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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