Meilisearch PHP | Documentation

Settings extends Data
in package
implements JsonSerializable

Tags
phpstan-type

SettingsEmbedders array<non-empty-string, array{ apiKey?: string, binaryQuantized?: bool, dimensions?: int, distribution?: array{mean: float, sigma: float}, documentTemplate?: string, documentTemplateMaxBytes?: int, indexingFragments?: array<string, mixed>, indexingEmbedder?: array{model: string, source: string}, model?: string, pooling?: string, request?: array<string, mixed>, response?: array<string, mixed>, revision?: string, searchFragments?: array<string, mixed>, searchEmbedder?: array{model: string, source: string}, source?: string, url?: string }>

SettingsTypoTolerance array{ enabled?: bool, minWordSizeForTypos?: array{oneTypo?: int, twoTypos?: int}, disableOnWords?: list, disableOnAttributes?: list, disableOnNumbers?: bool }

SettingsChatSearchParameters array{ indexUid?: non-empty-string, q?: string, filter?: list<non-empty-string|list>, locales?: list, attributesToRetrieve?: list, attributesToCrop?: list, cropLength?: positive-int, attributesToHighlight?: list, cropMarker?: string, highlightPreTag?: string, highlightPostTag?: string, facets?: list, showMatchesPosition?: bool, sort?: list, matchingStrategy?: 'last'|'all'|'frequency', offset?: non-negative-int, limit?: non-negative-int, hitsPerPage?: non-negative-int, page?: non-negative-int, vector?: non-empty-list<float|non-empty-list>, hybrid?: array, attributesToSearchOn?: non-empty-list, showRankingScore?: bool, showRankingScoreDetails?: bool, rankingScoreThreshold?: float, distinct?: non-empty-string, federationOptions?: array }

RawSettings array{ dictionary?: list, displayedAttributes?: list, distinctAttribute?: string|null, embedders?: SettingsEmbedders|null, faceting?: array{ maxValuesPerFacet?: non-negative-int, sortFacetValuesBy?: array<non-empty-string, 'alpha'|'count'> }|null, facetSearch?: bool, filterableAttributes?: list<string|array{ attributePatterns: list, features?: array{ facetSearch: bool, filter: array{equality: bool, comparison: bool} } }>|null, localizedAttributes?: list<array{locales: list, attributePatterns: list}>, nonSeparatorTokens?: list, pagination?: array{maxTotalHits: non-negative-int}, prefixSearch?: 'indexingTime'|'disabled'|null, proximityPrecision?: 'byWord'|'byAttribute', rankingRules?: list, searchableAttributes?: list, searchCutoffMs?: non-negative-int|null, separatorTokens?: list, sortableAttributes?: list, stopWords?: list, synonyms?: array<string, list>|null, typoTolerance?: SettingsTypoTolerance|null, chat?: array{ description: string, documentTemplate: string, documentTemplateMaxBytes: int, searchParameters: SettingsChatSearchParameters } }

Table of Contents

Interfaces

JsonSerializable

Properties

$data  : array<string|int, mixed>

Methods

__construct()  : mixed
count()  : int
getIterator()  : ArrayIterator
jsonSerialize()  : array<string|int, mixed>
offsetExists()  : bool
offsetGet()  : mixed
offsetSet()  : void
offsetUnset()  : void
toArray()  : RawSettings

Properties

$data

protected array<string|int, mixed> $data = []

Methods

__construct()

public __construct([RawSettings $data = [] ]) : mixed
Parameters
$data : RawSettings = []

count()

public count() : int
Return values
int

getIterator()

public getIterator() : ArrayIterator
Return values
ArrayIterator

jsonSerialize()

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

offsetExists()

public offsetExists(mixed $offset) : bool
Parameters
$offset : mixed
Return values
bool

offsetGet()

public offsetGet(mixed $offset) : mixed
Parameters
$offset : mixed

offsetSet()

public offsetSet(mixed $offset, mixed $value) : void
Parameters
$offset : mixed
$value : mixed

offsetUnset()

public offsetUnset(mixed $offset) : void
Parameters
$offset : mixed

toArray()

public toArray() : RawSettings
Return values
RawSettings
On this page

Search results