Property | Type | Description | |
---|---|---|---|
$client | Elasticsearch\Client | Elasticsearch client | |
$config | Phalcon\Config | Indexer config | |
$logger | Phalcon\Logger\AdapterInterface | Application logger |
Method | Description | |
---|---|---|
__construct ( ) | ||
index ( |
Puts a post in the search server | |
indexAll ( ) | Indexes all posts in the forum in ES | |
search ( array $fields, integer $limit = 10, boolean $returnPosts = false ) : array | Search documents in ElasticSearch by the specified criteria |
Method | Description | |
---|---|---|
createPostArray ( |
||
doIndex ( |
Index a single document | |
parseElasticResponse ( mixed $response ) : array | Parse Elasticsearch response |
protected createPostArray ( |
||
$post |
protected doIndex ( |
||
$post |
public index ( |
||
$post |
protected parseElasticResponse ( mixed $response ) : array | ||
$response | mixed | |
return | array |
protected Client,Elasticsearch $client | ||
return | Elasticsearch\Client |