---
name: "knife-index"
section: "1"
platform: "linux"
package: "chef"
version: "10.12.0-3"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/knife-index"
---

# knife-index(1)

Rebuild the search index on a Chef Server

## NAME

**knife-index** - Rebuild the search index on a Chef Server

## SYNOPSIS

**knife** **index rebuild** *(options)*

- **-y**, **--yes**

  don´t bother to ask if I´m sure

## DESCRIPTION

Rebuilds all the search indexes on the server. This is accomplished by deleting all objects from the search index, and then forwarding each item in the database to **chef-expander**(8) via [**rabbitmq-server**(1)](/rabbitmq-server/1.md). Depending on the number of objects in the database, it may take some time for all objects to be indexed and available for search.

## SEE ALSO

[**knife-search**(1)](/knife-search/1.md)

## AUTHOR

Chef was written by Adam Jacob *adam@opscode.com* with many contributions from the community.

## DOCUMENTATION

This manual page was written by Joshua Timberman *joshua@opscode.com*. Permission is granted to copy, distribute and / or modify this document under the terms of the Apache 2.0 License.

## CHEF

Knife is distributed with Chef. *http://wiki.opscode.com/display/chef/Home*
