Meilisearch PHP | Documentation

HandlesSettings

Table of Contents

Methods

getChat()  : array<string|int, mixed>
getDictionary()  : array<int, non-empty-string>
getDisplayedAttributes()  : array<int, non-empty-string>
getDistinctAttribute()  : non-empty-string|null
getEmbedders()  : array<string|int, mixed>|null
getFaceting()  : array{maxValuesPerFacet: int, sortFacetValuesBy: array}
getFacetSearch()  : bool
getFilterableAttributes()  : array<int, non-empty-string|array{attributePatterns: list, features?: array{facetSearch: bool, filter: array{equality: bool, comparison: bool}}}>
getLocalizedAttributes()  : array<int, array{attributePatterns: list, locales: list}>|null
getNonSeparatorTokens()  : array<int, non-empty-string>
getPagination()  : array{maxTotalHits: positive-int}
getPrefixSearch()  : "indexingTime"|"disabled"
getProximityPrecision()  : "byWord"|"byAttribute"
getRankingRules()  : array<int, non-empty-string>
getSearchableAttributes()  : array<int, non-empty-string>
getSearchCutoffMs()  : int|null
getSeparatorTokens()  : array<string|int, mixed>
getSortableAttributes()  : array<int, non-empty-string>
getStopWords()  : array<int, non-empty-string>
getSynonyms()  : array<non-empty-string, array<int, non-empty-string>>
getTypoTolerance()  : array{enabled: bool, minWordSizeForTypos: array{oneTypo: int, twoTypos: int}, disableOnWords: list, disableOnAttributes: list, disableOnNumbers: bool}
resetDictionary()  : Task
resetDisplayedAttributes()  : Task
resetDistinctAttribute()  : Task
resetEmbedders()  : Task
resetFaceting()  : Task
resetFacetSearch()  : Task
resetFilterableAttributes()  : Task
resetLocalizedAttributes()  : Task
resetNonSeparatorTokens()  : Task
resetPagination()  : Task
resetPrefixSearch()  : Task
resetProximityPrecision()  : Task
resetRankingRules()  : Task
resetSearchableAttributes()  : Task
resetSearchCutoffMs()  : Task
resetSeparatorTokens()  : Task
resetSortableAttributes()  : Task
resetStopWords()  : Task
resetSynonyms()  : Task
resetTypoTolerance()  : Task
updateChat()  : Task
updateDictionary()  : Task
updateDisplayedAttributes()  : Task
updateDistinctAttribute()  : Task
updateEmbedders()  : Task
updateFaceting()  : Task
updateFacetSearch()  : Task
updateFilterableAttributes()  : Task
updateLocalizedAttributes()  : Task
updateNonSeparatorTokens()  : Task
updatePagination()  : Task
updatePrefixSearch()  : Task
updateProximityPrecision()  : Task
updateRankingRules()  : Task
updateSearchableAttributes()  : Task
updateSearchCutoffMs()  : Task
updateSeparatorTokens()  : Task
updateSortableAttributes()  : Task
updateStopWords()  : Task
updateSynonyms()  : Task
updateTypoTolerance()  : Task

Methods

getChat()

public getChat() : array<string|int, mixed>
Tags
since

Meilisearch v1.15.1

Return values
array<string|int, mixed>

getDictionary()

public getDictionary() : array<int, non-empty-string>
Return values
array<int, non-empty-string>

getDisplayedAttributes()

public getDisplayedAttributes() : array<int, non-empty-string>
Return values
array<int, non-empty-string>

getDistinctAttribute()

public getDistinctAttribute() : non-empty-string|null
Return values
non-empty-string|null

getEmbedders()

public getEmbedders() : array<string|int, mixed>|null
Tags
since

Meilisearch v1.13.0

Return values
array<string|int, mixed>|null

getFaceting()

public getFaceting() : array{maxValuesPerFacet: int, sortFacetValuesBy: array}
Return values
array{maxValuesPerFacet: int, sortFacetValuesBy: array}

getFacetSearch()

public getFacetSearch() : bool
Tags
since

Meilisearch v1.12.0

Return values
bool

getFilterableAttributes()

public getFilterableAttributes() : array<int, non-empty-string|array{attributePatterns: list, features?: array{facetSearch: bool, filter: array{equality: bool, comparison: bool}}}>
Return values
array<int, non-empty-string|array{attributePatterns: list, features?: array{facetSearch: bool, filter: array{equality: bool, comparison: bool}}}>

getLocalizedAttributes()

public getLocalizedAttributes() : array<int, array{attributePatterns: list, locales: list}>|null
Return values
array<int, array{attributePatterns: list, locales: list}>|null

getNonSeparatorTokens()

public getNonSeparatorTokens() : array<int, non-empty-string>
Return values
array<int, non-empty-string>

getPagination()

public getPagination() : array{maxTotalHits: positive-int}
Return values
array{maxTotalHits: positive-int}

getPrefixSearch()

public getPrefixSearch() : "indexingTime"|"disabled"
Tags
since

Meilisearch v1.12.0

Return values
"indexingTime"|"disabled"

getProximityPrecision()

public getProximityPrecision() : "byWord"|"byAttribute"
Return values
"byWord"|"byAttribute"

getRankingRules()

public getRankingRules() : array<int, non-empty-string>
Return values
array<int, non-empty-string>

getSearchableAttributes()

public getSearchableAttributes() : array<int, non-empty-string>
Return values
array<int, non-empty-string>

getSearchCutoffMs()

public getSearchCutoffMs() : int|null
Return values
int|null

getSeparatorTokens()

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

getSortableAttributes()

public getSortableAttributes() : array<int, non-empty-string>
Return values
array<int, non-empty-string>

getStopWords()

public getStopWords() : array<int, non-empty-string>
Return values
array<int, non-empty-string>

getSynonyms()

public getSynonyms() : array<non-empty-string, array<int, non-empty-string>>
Return values
array<non-empty-string, array<int, non-empty-string>>

getTypoTolerance()

public getTypoTolerance() : array{enabled: bool, minWordSizeForTypos: array{oneTypo: int, twoTypos: int}, disableOnWords: list, disableOnAttributes: list, disableOnNumbers: bool}
Return values
array{enabled: bool, minWordSizeForTypos: array{oneTypo: int, twoTypos: int}, disableOnWords: list, disableOnAttributes: list, disableOnNumbers: bool}

updateChat()

public updateChat(array<string|int, mixed> $chatSettings) : Task
Parameters
$chatSettings : array<string|int, mixed>
Tags
since

Meilisearch v1.15.1

Return values
Task

updateDictionary()

public updateDictionary(array<int, non-empty-string> $wordDictionary) : Task
Parameters
$wordDictionary : array<int, non-empty-string>
Return values
Task

updateDisplayedAttributes()

public updateDisplayedAttributes(array<int, non-empty-string> $displayedAttributes) : Task
Parameters
$displayedAttributes : array<int, non-empty-string>
Return values
Task

updateDistinctAttribute()

public updateDistinctAttribute(non-empty-string $distinctAttribute) : Task
Parameters
$distinctAttribute : non-empty-string
Return values
Task

updateEmbedders()

public updateEmbedders(array<string|int, mixed> $embedders) : Task
Parameters
$embedders : array<string|int, mixed>
Tags
since

Meilisearch v1.13.0

Return values
Task

updateFaceting()

public updateFaceting(array{maxValuesPerFacet?: int, sortFacetValuesBy?: array$faceting) : Task
Parameters
$faceting : array{maxValuesPerFacet?: int, sortFacetValuesBy?: array}
Return values
Task

updateFacetSearch()

public updateFacetSearch(bool $facetSearch) : Task
Parameters
$facetSearch : bool
Tags
since

Meilisearch v1.12.0

Return values
Task

updateFilterableAttributes()

public updateFilterableAttributes(array<int, non-empty-string|array{attributePatterns: list, features?: array{facetSearch: bool, filter: array{equality: bool, comparison: bool}}}> $filterableAttributes) : Task
Parameters
$filterableAttributes : array<int, non-empty-string|array{attributePatterns: list, features?: array{facetSearch: bool, filter: array{equality: bool, comparison: bool}}}>

Note: When attributePatterns contains '_geo', the features field is ignored

Return values
Task

updateLocalizedAttributes()

public updateLocalizedAttributes(array<int, array{attributePatterns: list, locales: list}> $localizedAttributes) : Task
Parameters
$localizedAttributes : array<int, array{attributePatterns: list, locales: list}>
Return values
Task

updateNonSeparatorTokens()

public updateNonSeparatorTokens(array<int, non-empty-string> $nonSeparatorTokens) : Task
Parameters
$nonSeparatorTokens : array<int, non-empty-string>
Return values
Task

updatePagination()

public updatePagination(array{maxTotalHits: positive-int} $pagination) : Task
Parameters
$pagination : array{maxTotalHits: positive-int}
Return values
Task

updatePrefixSearch()

public updatePrefixSearch("indexingTime"|"disabled" $prefixSearch) : Task
Parameters
$prefixSearch : "indexingTime"|"disabled"
Tags
since

Meilisearch v1.12.0

Return values
Task

updateProximityPrecision()

public updateProximityPrecision("byWord"|"byAttribute" $type) : Task
Parameters
$type : "byWord"|"byAttribute"
Return values
Task

updateRankingRules()

public updateRankingRules(array<int, non-empty-string> $rankingRules) : Task
Parameters
$rankingRules : array<int, non-empty-string>
Return values
Task

updateSearchableAttributes()

public updateSearchableAttributes(array<int, non-empty-string> $searchableAttributes) : Task
Parameters
$searchableAttributes : array<int, non-empty-string>
Return values
Task

updateSearchCutoffMs()

public updateSearchCutoffMs(int $value) : Task
Parameters
$value : int
Return values
Task

updateSeparatorTokens()

public updateSeparatorTokens(array<int, non-empty-string> $separatorTokens) : Task
Parameters
$separatorTokens : array<int, non-empty-string>
Return values
Task

updateSortableAttributes()

public updateSortableAttributes(array<int, non-empty-string> $sortableAttributes) : Task
Parameters
$sortableAttributes : array<int, non-empty-string>
Return values
Task

updateStopWords()

public updateStopWords(array<int, non-empty-string> $stopWords) : Task
Parameters
$stopWords : array<int, non-empty-string>
Return values
Task

updateSynonyms()

public updateSynonyms(array<non-empty-string, array<int, non-empty-string>> $synonyms) : Task
Parameters
$synonyms : array<non-empty-string, array<int, non-empty-string>>
Return values
Task

updateTypoTolerance()

public updateTypoTolerance(array{enabled: bool, minWordSizeForTypos: array{oneTypo: int, twoTypos: int}, disableOnWords: list, disableOnAttributes: list, disableOnNumbers: bool} $typoTolerance) : Task
Parameters
$typoTolerance : array{enabled: bool, minWordSizeForTypos: array{oneTypo: int, twoTypos: int}, disableOnWords: list, disableOnAttributes: list, disableOnNumbers: bool}
Return values
Task

        
On this page

Search results