rebuild index
rebuild index <index_name> [pattern] [--force]
Rebuilds a type or field index. This command requires connection to a user database.
Arguments
Argument |
Explanation |
---|---|
index_name |
name of type or member field |
Options
Option |
Explanation |
---|---|
pattern |
regex of index name |
–force, -f |
forces delete, without interaction |
Example
tomas@tomsmbp:~/ > rebuild index Product::_price
rebuild the following indices:
Are you sure you want to continue [yes/No]? yes
Rebuilding indices.
Rebuilding indices done.
tomas@tomsmbp:~/ > dboo example_queries -u=example_user -p=password -- rebuild index Product::_price
rebuild the following indices:
Are you sure you want to continue [yes/No]? yes
Rebuilding indices.
Rebuilding indices done.