AirLay backend

Elasticsearch
in package

Table of Contents

BULK_SIZE  = 10000
$client  : Client
$numberOfReplicas  : int
$prefix  : string
__construct()  : mixed
addObjectsToIndex()  : void
createIndex()  : void
createIndexByDataSet()  : void
deleteIndex()  : void
indexExists()  : bool
removeFromDataSetIndex()  : void
removeFromIndex()  : void
executeBulk()  : void

Constants

Properties

Methods

__construct()

public __construct(string $host, string $login, string $password, string $prefix, int $numberOfReplicas) : mixed
Parameters
$host : string
$login : string
$password : string
$prefix : string
$numberOfReplicas : int
Tags
throws
AuthenticationException
Return values
mixed

addObjectsToIndex()

public addObjectsToIndex(string $indexName, iteratable<string|int, mixed> $objects) : void
Parameters
$indexName : string
$objects : iteratable<string|int, mixed>
Tags
throws
ClientResponseException
throws
NoNodeAvailableException
throws
ServerResponseException
Return values
void

createIndex()

public createIndex(ObjectId $dataSetId) : void
Parameters
$dataSetId : ObjectId
Return values
void

createIndexByDataSet()

public createIndexByDataSet(DataSetEntity $dataSet[, array<string|int, mixed> $filter = [] ]) : void
Parameters
$dataSet : DataSetEntity
$filter : array<string|int, mixed> = []
Tags
throws
ClientResponseException
throws
NoNodeAvailableException
throws
ServerResponseException
Return values
void

deleteIndex()

public deleteIndex(ObjectId $dataSetId) : void
Parameters
$dataSetId : ObjectId
Return values
void

indexExists()

public indexExists(ObjectId $dataSetId) : bool
Parameters
$dataSetId : ObjectId
Return values
bool

removeFromDataSetIndex()

public removeFromDataSetIndex(ObjectId $dataSetId, iteratable<string|int, mixed> $objects) : void
Parameters
$dataSetId : ObjectId
$objects : iteratable<string|int, mixed>
Tags
throws
ClientResponseException
throws
NoNodeAvailableException
throws
ServerResponseException
Return values
void

removeFromIndex()

public removeFromIndex(string $indexName, iteratable<string|int, mixed> $objects) : void
Parameters
$indexName : string
$objects : iteratable<string|int, mixed>
Tags
throws
ClientResponseException
throws
NoNodeAvailableException
throws
ServerResponseException
Return values
void

executeBulk()

private executeBulk(array<string|int, mixed> $operations) : void
Parameters
$operations : array<string|int, mixed>
Return values
void

Search results