PHP Класс ElasticPress_CLI_Command

Наследование: extends WP_CLI_Command
Показать файл Открыть проект

Открытые методы

Метод Описание
activate_module ( array $args, array $assoc_args ) Activate a module.
deactivate_module ( array $args, array $assoc_args ) Dectivate a module.
delete_index ( array $args, array $assoc_args ) Delete the current index. !!Warning!! This removes your elasticsearch index for the entire site.
index ( array $args, array $assoc_args ) Index all posts for a site or network wide
list_modules ( array $args, array $assoc_args ) List modules (either active or all)
put_mapping ( array $args, array $assoc_args ) Add the document mapping
recreate_network_alias ( array $args, array $assoc_args ) Map network alias to every index in the network
stats ( ) Get stats on the current index.
status ( ) Ping the Elasticsearch server and retrieve a status.
stop_the_insanity ( ) Resets some values to reduce memory footprint.

Приватные методы

Метод Описание
_connect_check ( ) Provide better error messaging for common connection errors
_create_network_alias ( ) : array | boolean Helper method for creating the network alias
_index_helper ( array $args ) : array Helper method for indexing posts
bulk_index ( boolean $show_bulk_errors = false ) Perform the bulk index operation
queue_post ( $post_id, $bulk_trigger, boolean $show_bulk_errors = false ) : boolean | integer Queues up a post for bulk indexing
send_bulk_errors ( ) Send any bulk indexing errors

Описание методов

activate_module() публичный Метод

Activate a module.
С версии: 2.1
public activate_module ( array $args, array $assoc_args )
$args array
$assoc_args array

deactivate_module() публичный Метод

Dectivate a module.
С версии: 2.1
public deactivate_module ( array $args, array $assoc_args )
$args array
$assoc_args array

delete_index() публичный Метод

Delete the current index. !!Warning!! This removes your elasticsearch index for the entire site.
С версии: 0.9
public delete_index ( array $args, array $assoc_args )
$args array
$assoc_args array

index() публичный Метод

Index all posts for a site or network wide
С версии: 0.1.2
public index ( array $args, array $assoc_args )
$args array
$assoc_args array

list_modules() публичный Метод

List modules (either active or all)
С версии: 2.1
public list_modules ( array $args, array $assoc_args )
$args array
$assoc_args array

put_mapping() публичный Метод

Add the document mapping
С версии: 0.9
public put_mapping ( array $args, array $assoc_args )
$args array
$assoc_args array

recreate_network_alias() публичный Метод

Map network alias to every index in the network
С версии: 0.9
public recreate_network_alias ( array $args, array $assoc_args )
$args array
$assoc_args array

stats() публичный Метод

Get stats on the current index.
С версии: 0.9.2
public stats ( )

status() публичный Метод

Ping the Elasticsearch server and retrieve a status.
С версии: 0.9.1
public status ( )

stop_the_insanity() публичный Метод

Resets some values to reduce memory footprint.
public stop_the_insanity ( )