Свойство | Type | Description | |
---|---|---|---|
$elastic | Elasticsearch\Client | Elasticsearch client instance. | |
$index | string | Elastic Search default index. |
Méthode | Description | |
---|---|---|
__construct ( array $config = [] ) | Connection constructor. | |
bulkStatement ( array $params ) : array | Execute a bulk statement on index;. | |
deleteStatement ( array $params ) : array | Execute a update statement on index;. | |
existsStatement ( array $params ) : array | boolean | Execute a exists statement on index. | |
getClient ( ) : Elasticsearch\Client | Get the elastic search client instance. | |
getDSLQuery ( ) : DSLGrammar | Get DSL grammar instance for this connection. | |
getDefaultIndex ( ) : string | Get the default elastic index. | |
getMapBuilder ( ) : |
Get map builder instance for this connection. | |
getMapGrammar ( ) : |
Get map grammar instance for this connection. | |
indexStatement ( array $params ) : array | Execute a insert statement on index;. | |
mapStatement ( array $mappings ) : array | Execute a map statement on index;. | |
persist ( ) : |
Create a new elastic persistence handler. | |
search ( ) : |
Begin a fluent search query builder. | |
searchStatement ( array $search ) : array | Execute a map statement on index;. | |
setClient ( Elasticsearch\Client $client ) | Set a custom elastic client. | |
setDefaultIndex ( $index ) : |
Set the default index. | |
suggest ( ) : |
Begin a fluent suggest query builder. | |
suggestStatement ( array $suggestions ) : array | Execute a map statement on index;. | |
updateStatement ( array $params ) : array | Execute a update statement on index;. |
Méthode | Description | |
---|---|---|
buildClient ( array $config ) : Elasticsearch\Client | Create an elastic search instance. | |
setStatementIndex ( array $params ) : array |
public __construct ( array $config = [] ) | ||
$config | array |
public bulkStatement ( array $params ) : array | ||
$params | array | |
Résultat | array |
public deleteStatement ( array $params ) : array | ||
$params | array | |
Résultat | array |
public getClient ( ) : Elasticsearch\Client | ||
Résultat | Elasticsearch\Client |
public getDSLQuery ( ) : DSLGrammar | ||
Résultat | DSLGrammar |
public getDefaultIndex ( ) : string | ||
Résultat | string |
public getMapBuilder ( ) : |
||
Résultat |
public getMapGrammar ( ) : |
||
Résultat |
public indexStatement ( array $params ) : array | ||
$params | array | |
Résultat | array |
public mapStatement ( array $mappings ) : array | ||
$mappings | array | |
Résultat | array |
public persist ( ) : |
||
Résultat |
public search ( ) : |
||
Résultat |
public searchStatement ( array $search ) : array | ||
$search | array | |
Résultat | array |
public setClient ( Elasticsearch\Client $client ) | ||
$client | Elasticsearch\Client |
public setDefaultIndex ( $index ) : |
||
$index | ||
Résultat |
public suggest ( ) : |
||
Résultat |
public suggestStatement ( array $suggestions ) : array | ||
$suggestions | array | |
Résultat | array |
public updateStatement ( array $params ) : array | ||
$params | array | |
Résultat | array |
protected Client,Elasticsearch $elastic | ||
Résultat | Elasticsearch\Client |