Meilisearch PHP | Documentation

MultiSearchFederation
in package

Table of Contents

Properties

$facetsByIndex  : array<non-empty-string, array<int, non-empty-string>>|null
$limit  : int|null
$mergeFacets  : array{maxValuesPerFacet: positive-int}|null
$offset  : int|null

Methods

setFacetsByIndex()  : $this
setLimit()  : $this
setMergeFacets()  : $this
setOffset()  : $this
toArray()  : array<string|int, mixed>

Properties

$facetsByIndex

private array<non-empty-string, array<int, non-empty-string>>|null $facetsByIndex = null

Methods

setFacetsByIndex()

public setFacetsByIndex(array<non-empty-string, array<int, non-empty-string>> $facetsByIndex) : $this
Parameters
$facetsByIndex : array<non-empty-string, array<int, non-empty-string>>
Return values
$this

setMergeFacets()

public setMergeFacets(array{maxValuesPerFacet: positive-int} $mergeFacets) : $this
Parameters
$mergeFacets : array{maxValuesPerFacet: positive-int}
Return values
$this

setOffset()

public setOffset(int $offset) : $this
Parameters
$offset : int
Return values
$this

toArray()

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

        
On this page

Search results