Свойство | Тип | Описание | |
---|---|---|---|
$client | Elasticsearch\Client | Elasticsearch client | |
$config | Phalcon\Config | Indexer config | |
$logger | Phalcon\Logger\AdapterInterface | Application logger |
Метод | Описание | |
---|---|---|
__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 |
Метод | Описание | |
---|---|---|
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 | |
Результат | array |
protected Client,Elasticsearch $client | ||
Результат | Elasticsearch\Client |
protected Config,Phalcon $config | ||
Результат | Phalcon\Config |