Meilisearch PHP | Documentation

Indexes extends Endpoint
in package

FinalYes

Table of Contents

Constants

PATH  : mixed = '/indexes'

Properties

$apiKey  : string|null
$http  : Http

Methods

__construct()  : mixed
all()  : IndexesResults
allRaw()  : array{results: list, offset: int, limit: int, total: int}
create()  : Task
show()  : array<string|int, mixed>|null
swapIndexes()  : Task

Constants

PATH

protected mixed PATH = '/indexes'

Properties

Methods

__construct()

public __construct(Http $http[, string|null $apiKey = null ]) : mixed
Parameters
$http : Http
$apiKey : string|null = null

allRaw()

public allRaw([array{offset?: int, limit?: int} $options = [] ]) : array{results: list, offset: int, limit: int, total: int}
Parameters
$options : array{offset?: int, limit?: int} = []
Return values
array{results: list, offset: int, limit: int, total: int}

create()

public create(string $uid[, array{primaryKey?: string|null} $options = [] ]) : Task
Parameters
$uid : string
$options : array{primaryKey?: string|null} = []
Tags
throws
Exception
Return values
Task

show()

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

swapIndexes()

public swapIndexes(array<string|int, array{indexes: mixed}> $indexes) : Task
Parameters
$indexes : array<string|int, array{indexes: mixed}>
Return values
Task
On this page

Search results