Properties

$client

$client : \Elastica\Client

Type

\Elastica\Client — mock

$options

$options : array

Type

array — Default handler options

Methods

setUp()

setUp() 

testHandle()

testHandle() 

testSetFormatter()

testSetFormatter() 

testSetFormatterInvalid()

testSetFormatterInvalid() 

testOptions()

testOptions() 

testConnectionErrors()

testConnectionErrors(  $ignore,   $expectedError) 

Parameters

$ignore
$expectedError

providerTestConnectionErrors()

providerTestConnectionErrors() : array

Returns

array

testHandleIntegration()

testHandleIntegration() 

Integration test using localhost Elastic Search server

getRecord()

getRecord(  $level = \Monolog\Logger::WARNING,   $message = 'test',   $context = array()) : array

Parameters

$level
$message
$context

Returns

array —

Record

getMultipleRecords()

getMultipleRecords() : array

Returns

array

getIdentityFormatter()

getIdentityFormatter() : \Monolog\Monolog\Formatter\FormatterInterface

Returns

\Monolog\Monolog\Formatter\FormatterInterface

getCreatedDocId()

getCreatedDocId(\Elastica\Response  $response) : string|null

Return last created document id from ES response

Parameters

\Elastica\Response $response

Elastica Response object

Returns

string|null

getDocSourceFromElastic()

getDocSourceFromElastic(\Elastica\Client  $client, string  $index, string  $type, string  $documentId) : array

Retrieve document by id from Elasticsearch

Parameters

\Elastica\Client $client

Elastica client

string $index
string $type
string $documentId

Returns

array