Cloud Platform

Drush commands with Apache Solr Search module

The Apache Solr Search module includes a group of Drush commands you can use to work with your search environments. The following list includes several useful commands:

Command

Description

solr-delete-index

Deletes the content from the index (can accept content types as parameters).

solr-get-env-id

Retrieve the default Apache Solr environment ID, or all environment IDs and names.

solr-get-env-name

Retrieve the Apache Solr environment name.

solr-get-env-url

Retrieve the Apache Solr environment URL.

solr-index

Re-indexes the content marked for re-indexing.

solr-mark-all

Marks content for re-indexing (can accept content types as parameters).

solr-search

Search the website for keywords using Apache Solr.

solr-set-env-url

Retrieve the URL of an Apache Solr environment.

solr-variable-delete (solr-vdel)

Delete an Apache Solr environment variable.

solr-variable-get (solr-vget)

Retrieve a list of Apache Solr environment variable names and values.

solr-variable-set (solr-vset)

Retrieve an Apache Solr environment variable.

solr-set-derived-key

Sets an environment to be active for Acquia Search using a specific derived key—you must use your Acquia Identifier and Network Key to set the number. You can find those numbers on the Acquia Network Subscription page, under Acquia Network keys.

For more information about the preceding commands, run drush help from the command line of your application where Acquia Search is installed.

Help

Ask a question

Common questions

If you can't find what you're looking for, then you can reach out to our Support team for further assistance.