PHP 클래스 ElasticPress_CLI_Command

상속: extends WP_CLI_Command
파일 보기 프로젝트 열기: 10up/elasticpress

공개 메소드들

메소드 설명
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 ( )