Ecsi_Command
Custom tables management commands for Better Search Pro.
Namespace: WebberZone\Better_Search\Pro\CLI
Since: 4.3.0
Source: includes/cli/class-ecsi-command.php line 23
Extends: Base_Command
Methods
create()
Create custom tables for Better Search Pro.
OPTIONS
[—dry-run] : Show what would be created without making changes.
EXAMPLES
wp bsearch tables create
wp bsearch tables create --dry-run
Line: 50
public function create( array $args, array $assoc_args ): void;
| Type | Name | Description |
|---|---|---|
array | $args | Command arguments. |
array | $assoc_args | Command associative arguments. |
Returns: void
drop()
Drop custom tables.
OPTIONS
[—force] : Force drop without confirmation.
EXAMPLES
wp bsearch tables drop --force
Line: 87
public function drop( array $args, array $assoc_args ): void;
| Type | Name | Description |
|---|---|---|
array | $args | Command arguments. |
array | $assoc_args | Command associative arguments. |
Returns: void
enable()
Enable the Enhanced Content Search Index (ECSI).
OPTIONS
[—network] : Apply to all sites in the network (multisite only).
[—blog-id=
EXAMPLES
wp bsearch ecsi enable
wp bsearch ecsi enable --network
wp bsearch ecsi enable --blog-id=3
Line: 128
public function enable( array $args, array $assoc_args ): void;
| Type | Name | Description |
|---|---|---|
array | $args | Command arguments. |
array | $assoc_args | Command associative arguments. |
Returns: void
disable()
Disable the Enhanced Content Search Index (ECSI).
OPTIONS
[—network] : Apply to all sites in the network (multisite only).
[—blog-id=
EXAMPLES
wp bsearch ecsi disable
wp bsearch ecsi disable --network
wp bsearch ecsi disable --blog-id=3
Line: 154
public function disable( array $args, array $assoc_args ): void;
| Type | Name | Description |
|---|---|---|
array | $args | Command arguments. |
array | $assoc_args | Command associative arguments. |
Returns: void
status()
Show custom tables status.
OPTIONS
[—format=
[—network] : Show status for all sites in the network.
EXAMPLES
wp bsearch tables status
wp bsearch tables status --format=json
wp bsearch tables status --network
Line: 218
public function status( array $args, array $assoc_args ): void;
| Type | Name | Description |
|---|---|---|
array | $args | Command arguments. |
array | $assoc_args | Command associative arguments. |
Returns: void
reindex()
Reindex posts into the Enhanced Content Search Index (ECSI).
OPTIONS
[—force] : Force reindex (truncate tables first).
[—batch-size=
[—post-type=
[—dry-run] : Show what would be indexed without making changes.
[—verbose] : Show per-post output instead of a progress bar.
[—network] : Reindex all sites in the network (multisite only).
EXAMPLES
wp bsearch ecsi reindex
wp bsearch ecsi reindex --force
wp bsearch ecsi reindex --batch-size=50 --post-type=post,page
Line: 295
public function reindex( array $args, array $assoc_args ): void;
| Type | Name | Description |
|---|---|---|
array | $args | Command arguments. |
array | $assoc_args | Command associative arguments. |
Returns: void