ElasticsearchDocumentTest

Extends \ElasticsearchTest

Tests documents api - search/get/delete/update/create

package

ElasticsearchSourceTest

subpackage

Model

Methods

Data source for testBulk

bulkProvider() : array

Response

array

Data provider for testDeleteByQuery

deleteByQueryProvider() : array

Response

array

Data provider for testExplainQuery

explainQueryProvider() : array

Response

array

Sets config for source

setConfig() 
inherited static

{@inheritdoc}

setUp() 
inherited

Test transactions

testBulk(array $params, array $transactions, boolean $autoTransactions, integer $count, string $find) 
dataProvider

bulkProvider

Arguments

$params

array

$transactions

array

$autoTransactions

boolean

$count

integer

$find

string

Test documents count

testCountDocument() 

Test create document

testCreateDocument() 

Test create/drop schema

testCreateDropSchema() 

Test delete all

testDeleteByQuery(\type $query, \type $countAfter) 
dataProvider

deleteByQueryProvider

Arguments

$query

\type

$countAfter

\type

Test delete document

testDeleteDocument() 

Test document exists

testExistsDocument() 

Test query explaination

testExplainQuery(string $rawQuery, array $explainationExists) 
dataProvider

explainQueryProvider

Arguments

$rawQuery

string

$explainationExists

array

Test get document

testGetDocument() 

Test get multiple documents

testGetMultipleDocuments() 

Test highlight document

testHighlightSearchDocument() 

Test type mapping

testMapping() 

Test scroll scan search document

testScrollScanSearchDocument() 

Test scroll search document

testScrollSearchDocument() 

Test search document

testSearchDocument() 

Test update document

testUpdateDocument() 

Properties

Fixtures

fixtures : array
var

Type(s)

array

Elasticsearch Model

Elasticsearch : \Elasticsearch
inherited
var

Type(s)

\Elasticsearch

{@inheritdoc}

autoFixtures : boolean
inherited
var

Type(s)

boolean