Meilisearch PHP | Documentation

Client
in package
uses HandlesDumps, HandlesIndex, HandlesTasks, HandlesKeys, HandlesSnapshots, HandlesSystem, HandlesMultiSearch

Table of Contents

Properties

$dumps  : Dumps
$health  : Health
$http  : Http
$index  : Indexes
$keys  : Keys
$snapshots  : Snapshots
$stats  : Stats
$tasks  : Tasks
$tenantToken  : TenantToken
$version  : Version

Methods

__construct()  : mixed
cancelTasks()  : array<string|int, mixed>
createDump()  : array<string|int, mixed>
createIndex()  : array<string|int, mixed>
createKey()  : Keys
createSnapshot()  : array<string|int, mixed>
deleteIndex()  : array<string|int, mixed>
deleteKey()  : array<string|int, mixed>
deleteTasks()  : array<string|int, mixed>
generateTenantToken()  : string
getIndex()  : Indexes
getIndexes()  : IndexesResults
getKey()  : Keys
getKeys()  : KeysResults
getRawIndex()  : array<string|int, mixed>
getRawKeys()  : array<string|int, mixed>
getTask()  : array<string|int, mixed>
getTasks()  : TasksResults
health()  : array<string|int, mixed>|null
index()  : Indexes
isHealthy()  : bool
multiSearch()  : mixed
stats()  : array<string|int, mixed>
swapIndexes()  : array<string|int, mixed>
updateIndex()  : array<string|int, mixed>
updateKey()  : Keys
version()  : array<string|int, mixed>
waitForTask()  : array<string|int, mixed>
waitForTasks()  : array<string|int, mixed>

Properties

Methods

__construct()

public __construct(string $url[, string|null $apiKey = null ][, ClientInterface|null $httpClient = null ][, RequestFactoryInterface|null $requestFactory = null ][, array<int, string> $clientAgents = [] ][, StreamFactoryInterface|null $streamFactory = null ]) : mixed
Parameters
$url : string
$apiKey : string|null = null
$httpClient : ClientInterface|null = null
$requestFactory : RequestFactoryInterface|null = null
$clientAgents : array<int, string> = []
$streamFactory : StreamFactoryInterface|null = null

createDump()

public createDump() : array<string|int, mixed>
Return values
array<string|int, mixed>

createIndex()

public createIndex(string $uid[, array<string|int, mixed> $options = [] ]) : array<string|int, mixed>
Parameters
$uid : string
$options : array<string|int, mixed> = []
Return values
array<string|int, mixed>

createKey()

public createKey([array<string|int, mixed> $options = [] ]) : Keys
Parameters
$options : array<string|int, mixed> = []
Return values
Keys

createSnapshot()

public createSnapshot() : array<string|int, mixed>
Return values
array<string|int, mixed>

deleteIndex()

public deleteIndex(string $uid) : array<string|int, mixed>
Parameters
$uid : string
Return values
array<string|int, mixed>

deleteKey()

public deleteKey(string $keyOrUid) : array<string|int, mixed>
Parameters
$keyOrUid : string
Return values
array<string|int, mixed>

generateTenantToken()

public generateTenantToken(string $apiKeyUid, mixed $searchRules[, array<string|int, mixed> $options = [] ]) : string
Parameters
$apiKeyUid : string
$searchRules : mixed
$options : array<string|int, mixed> = []
Return values
string

getKey()

public getKey(mixed $keyOrUid) : Keys
Parameters
$keyOrUid : mixed
Return values
Keys

getRawIndex()

public getRawIndex(string $uid) : array<string|int, mixed>
Parameters
$uid : string
Return values
array<string|int, mixed>

getRawKeys()

public getRawKeys() : array<string|int, mixed>
Return values
array<string|int, mixed>

getTask()

public getTask(mixed $uid) : array<string|int, mixed>
Parameters
$uid : mixed
Return values
array<string|int, mixed>

health()

public health() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null

stats()

public stats() : array<string|int, mixed>
Return values
array<string|int, mixed>

swapIndexes()

public swapIndexes(array<string|int, mixed> $indexes) : array<string|int, mixed>
Parameters
$indexes : array<string|int, mixed>
Return values
array<string|int, mixed>

updateIndex()

public updateIndex(string $uid[, array<string|int, mixed> $options = [] ]) : array<string|int, mixed>
Parameters
$uid : string
$options : array<string|int, mixed> = []
Return values
array<string|int, mixed>

updateKey()

public updateKey(string $keyOrUid[, array<string|int, mixed> $options = [] ]) : Keys
Parameters
$keyOrUid : string
$options : array<string|int, mixed> = []
Return values
Keys

version()

public version() : array<string|int, mixed>
Return values
array<string|int, mixed>

waitForTask()

public waitForTask(mixed $uid[, int $timeoutInMs = 5000 ][, int $intervalInMs = 50 ]) : array<string|int, mixed>
Parameters
$uid : mixed
$timeoutInMs : int = 5000
$intervalInMs : int = 50
Tags
throws
TimeOutException
Return values
array<string|int, mixed>

waitForTasks()

public waitForTasks(mixed $uids[, int $timeoutInMs = 5000 ][, int $intervalInMs = 50 ]) : array<string|int, mixed>
Parameters
$uids : mixed
$timeoutInMs : int = 5000
$intervalInMs : int = 50
Tags
throws
TimeOutException
Return values
array<string|int, mixed>

        
On this page

Search results