Indexes_Command
Indexes management commands for CRP.
Namespace: WebberZone\Contextual_Related_Posts\Pro\CLI
Since: 4.2.0
Source: includes/cli/class-indexes-command.php line 23
Extends: Base_Command
Methods
create()
Create FULLTEXT indexes for better search performance.
OPTIONS
[—dry-run] : Show what would be created without making changes.
EXAMPLES
wp crp db indexes create --dry-run
wp crp db indexes create
Line: 41
public function create( array $args, array $assoc_args ): void;
| Type | Name | Description |
|---|---|---|
array | $args | Command arguments. |
array | $assoc_args | Command associative arguments. |
Returns: void
delete()
Delete FULLTEXT indexes.
OPTIONS
[—dry-run] : Show what would be deleted without making changes.
[—force] : Skip confirmation prompt.
EXAMPLES
wp crp db indexes delete
wp crp db indexes delete --dry-run
Line: 86
public function delete( array $args, array $assoc_args ): void;
| Type | Name | Description |
|---|---|---|
array | $args | |
array | $assoc_args |
Returns: void
recreate()
Recreate FULLTEXT indexes (delete then create).
OPTIONS
[—dry-run] : Show what would be recreated without making changes.
EXAMPLES
wp crp db indexes recreate --dry-run
wp crp db indexes recreate
Line: 127
public function recreate( array $args, array $assoc_args ): void;
| Type | Name | Description |
|---|---|---|
array | $args | |
array | $assoc_args |
Returns: void
status()
Check status of FULLTEXT indexes.
OPTIONS
[—format=
EXAMPLES
wp crp db indexes status
wp crp db indexes status --format=json
Line: 179
public function status( array $args, array $assoc_args ): void;
| Type | Name | Description |
|---|---|---|
array | $args | |
array | $assoc_args |
Returns: void