If you need to change your Solr schema, you can test it locally. Acquia Support requires any schema changes to be tested on your own servers before accepting them for production on Acquia Cloud. Be sure to read our documentation on custom Solr configuration . You may also find the drupal.org documentation on Customizing the Solr configuration useful.
Notes
This article aumes the following:This article mentions Solr version 4.5.1, which is not the most recent version. The versions currently available under Acquia Search are 3.5 and 4.5.1.
Rather than modify Solr's schema.xml
, Acquia recommends adding items into the following files, which you can add to the same directory as your regular Solr schema files:
schema_extra_fields.xml
solrconfig_extra.xml
These files are included when your schema.xml
loads. Using them prevents you from modifying your approved schema.xml
and solrconfig.xml
files. Because Acquia Support must approve any changes to the schema files, using the extra*
files can significantly improve your ability to get a custom configuration approved.
Note for Acquia Cloud users
Acquia dsn't support the modification of the solrconfig.xml
on the Acquia Cloud servers. However, you can modify it for your own testing on your local site.
To test a file (such as schema.xml
) locally, you must prepare your environment and then configure its Drupal settings.
Allow this proce to run during your testing. Note that every time you want to test a change to a configuration file, you will need to stop the service (using CTRL-C) and then restart it.
/solr/[VERSION]
). You will use this shortly to run a Solr instance locally for your Drupal site to connect to. If you want to run multiple versions, you can have multiple folders.~/solr/apache-solr-[VERSION]/myproject
). This gives you an instance of the schema.xml
or other files that you can configure, while also keeping default copies.solr
directory.
The source directory depends on the module you are using. Here are some example locations:
docroot/sites/all/modules/apachesolr/solr-conf/solr-[SOLR VERSION]/*
.docroot/sites/all/modules/search_api_solr/solr-conf/[SOLR VERSION]/*
.
The destination configuration directory depends on the Solr version:
~/solr/apache-solr-4.5.1/myproject/solr/collection1/conf
~/solr/apache-solr-3.5.0/myproject/solr/conf
You should copy the source files to the destination directory above. This folder is where you will be making any needed changes that you need to test.
solrconfig.xml
and changing the value to 2000
(two seconds).~/solr/apache-solr-[VERSION]/myproject
directory, and start the local Solr instance with the following command:
java -jar start.jar
Next you should configure your local Drupal site to connect to the local Solr instance. The steps vary depending on the module you are using; please consult each module's documentation.
You should use the following Solr endpoint URL during your configuration: http://localhost:8983/solr
After connection, you can now test indexing and searching using this connection. You can also use the Solr analysis tool at [Solr URL]/admin/analysis.jsp, which you only have acce to locally and not on Acquia's instance.
Remember that every time you want to test a change to a Solr configuration file, you will need to stop the service that you left running in your command line (using CTRL-C) and then restart it after the changes are done.
Additionally, we recommend using Solr Devel module to debug Solr indexing and queries from within Drupal.
If this content did not answer your questions, try searching or contacting our support team for further assistance.
Wed Oct 22 2025 08:59:29 GMT+0000 (Coordinated Universal Time)