Property | Type | Description | |
---|---|---|---|
$_data | Stats info. | ||
$_index | Index. | ||
$_response | Response. |
Method | Description | |
---|---|---|
__construct ( |
Construct. | |
get ( string $setting = '' ) : array | string | null | Returns the current settings of the index. | |
getBlocksMetadata ( ) : boolean | ||
getBlocksRead ( ) : boolean | ||
getBlocksWrite ( ) : boolean | ||
getIndex ( ) : |
Returns the index object. | |
getMergePolicy ( string $key ) : string | Returns the specific merge policy value. | |
getReadOnly ( ) : boolean | getReadOnly. | |
getRefreshInterval ( ) : string | Returns the refresh interval. | |
request ( array $data = [], string $method = Request::GET ) : |
Updates the given settings for the index. | |
set ( array $data ) : |
Can be used to set/update settings. | |
setBlocksMetadata ( boolean $state = true ) : |
||
setBlocksRead ( boolean $state = true ) : |
||
setBlocksWrite ( boolean $state = true ) : |
||
setMergePolicy ( string $key, string $value ) : |
Sets the specific merge policies. | |
setNumberOfReplicas ( integer $replicas ) : |
Sets the number of replicas. | |
setReadOnly ( boolean $readOnly = true ) : |
Sets the index to read only. | |
setRefreshInterval ( integer $interval ) : |
Sets the index refresh interval. |
public __construct ( |
||
$index | Index object |
public getIndex ( ) : |
||
return | Index object |
public getMergePolicy ( string $key ) : string | ||
$key | string | Merge policy key (for ex. expunge_deletes_allowed) |
return | string | Refresh interval |
public getRefreshInterval ( ) : string | ||
return | string | Refresh interval |
public setBlocksMetadata ( boolean $state = true ) : |
||
$state | boolean | OPTIONAL (default = true) |
return |
public setBlocksRead ( boolean $state = true ) : |
||
$state | boolean | OPTIONAL (default = true) |
return |
public setBlocksWrite ( boolean $state = true ) : |
||
$state | boolean | OPTIONAL (default = true) |
return |
public setMergePolicy ( string $key, string $value ) : |
||
$key | string | Merge policy key (for ex. expunge_deletes_allowed) |
$value | string | |
return |
public setNumberOfReplicas ( integer $replicas ) : |
||
$replicas | integer | Number of replicas |
return | Response object |
public setReadOnly ( boolean $readOnly = true ) : |
||
$readOnly | boolean | (default = true) |
return |
public setRefreshInterval ( integer $interval ) : |
||
$interval | integer | Number of milliseconds |
return | Response object |