---
title: "Drush commands with Apache Solr Search module"
date: "2024-02-14T06:18:38+00:00"
summary: "Discover essential Drush commands for Apache Solr Search in Drupal. Learn to manage indexes, environments, and search functionality efficiently. Boost your site's search capabilities today."
image:
type: "page"
url: "/acquia-cloud-platform/drush-commands-apache-solr-search-module"
id: "d5bb82e2-8104-489f-891c-6af4683940c4"
---

The [Apache Solr Search](https://www.drupal.org/project/apachesolr) 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.