Add or replace multiples documents to an index
Array of Document objects to add/replace
Optional
options: DocumentOptionsOptions on document addition
Promise containing an EnqueuedTask
Add or replace multiples documents in a string format to an index. It only supports csv, ndjson and json formats.
Documents provided in a string to add/replace
Content type of your document: 'text/csv'|'application/x-ndjson'|'application/json'
Optional
queryParams: RawDocumentAdditionOptionsPromise containing an EnqueuedTask
Add or replace multiples documents to an index in batches
Array of Document objects to add/replace
Size of the batch
Optional
options: DocumentOptionsOptions on document addition
Promise containing array of enqueued task objects for each batch
Delete an index.
Promise which resolves when index is deleted successfully
Delete all documents of an index
Promise containing an EnqueuedTask
Delete one document
Id of Document to delete
Promise containing an EnqueuedTask
Delete multiples documents of an index.
Params value can be:
Promise containing an EnqueuedTask
Get documents of an index.
Parameters to browse the documents. Parameters can
contain the filter
field only available in Meilisearch v1.2 and newer
Promise containing the returned documents
Get the localized attributes settings.
Promise containing object of localized attributes settings
Get the pagination settings.
Promise containing object of pagination settings
Get the proximity precision settings of a Meilisearch index.
Promise containing the proximity precision settings
Get index information.
Promise containing index information
Get the SearchCutoffMs settings.
Promise containing object of SearchCutoffMs settings
Get stats of an index
Promise containing object with stats of the index
Get the list of all the tasks of the index.
Parameters to browse the tasks
Promise containing all tasks
Get the typo tolerance settings.
Promise containing the typo tolerance settings.
Reset the dictionary settings to its default value
Promise containing an EnqueuedTask
Reset the displayed-attributes.
Promise containing an EnqueuedTask
Reset the distinct-attribute.
Promise containing an EnqueuedTask
Reset the embedders settings to its default value
Promise containing an EnqueuedTask
Reset the faceting settings.
Promise containing an EnqueuedTask
Reset the filterable-attributes.
Promise containing an EnqueuedTask
Reset the localized attributes settings.
Promise containing an EnqueuedTask
Reset the non-separator tokens list to its default value
Promise containing an EnqueuedTask
Reset the pagination settings.
Promise containing an EnqueuedTask
Reset the proximity precision settings to its default value
Promise containing an EnqueuedTask
Reset the ranking rules list to its default value
Promise containing an EnqueuedTask
Reset the searchable-attributes.
Promise containing an EnqueuedTask
Reset the SearchCutoffMs settings.
Promise containing an EnqueuedTask
Reset the separator tokens list to its default value
Promise containing an EnqueuedTask
Reset settings.
Promise containing an EnqueuedTask
Reset the sortable-attributes.
Promise containing an EnqueuedTask
Reset the stop-words list to be empty again
Promise containing an EnqueuedTask
Reset the synonym list to be empty again
Promise containing an EnqueuedTask
Reset the typo tolerance settings.
Promise containing object of the enqueued update
Search for documents into an index
Optional
query: null | stringQuery string
Optional
options: SSearch options
Optional
config: Partial<Request>Additional request configuration options
Promise containing the search response
Search for facet values
Parameters used to search on the facets
Optional
config: Partial<Request>Additional request configuration options
Promise containing the search response
Search for documents into an index using the GET method
Optional
query: null | stringQuery string
Optional
options: SSearch options
Optional
config: Partial<Request>Additional request configuration options
Promise containing the search response
Search for similar documents
Parameters used to search for similar documents
Promise containing the search response
Update an index.
Data to update
Promise to the current Index object with updated information
Update the dictionary settings. Overwrite the old settings.
Array that contains the new dictionary settings.
Promise containing an EnqueuedTask or null
Update the displayed-attributes.
Array of strings that contains attributes of an index to display
Promise containing an EnqueuedTask
Update the distinct-attribute.
Field name of the distinct-attribute
Promise containing an EnqueuedTask
Add or update multiples documents to an index
Array of Document objects to add/update
Optional
options: DocumentOptionsOptions on document update
Promise containing an EnqueuedTask
This is an EXPERIMENTAL feature, which may break without a major version. It's available after Meilisearch v1.10.
More info about the feature: https://github.com/orgs/meilisearch/discussions/762 More info about experimental features in general: https://www.meilisearch.com/docs/reference/api/experimental-features
Object containing the function string and related options
Promise containing an EnqueuedTask
Add or update multiples documents in a string format to an index. It only supports csv, ndjson and json formats.
Documents provided in a string to add/update
Content type of your document: 'text/csv'|'application/x-ndjson'|'application/json'
Optional
queryParams: RawDocumentAdditionOptionsOptions on raw document addition
Promise containing an EnqueuedTask
Add or update multiples documents to an index in batches
Array of Document objects to add/update
Size of the batch
Optional
options: DocumentOptionsOptions on document update
Promise containing array of enqueued task objects for each batch
Update the embedders settings. Overwrite the old settings.
Object that contains the new embedders settings.
Promise containing an EnqueuedTask or null
Update the faceting settings.
Faceting index settings object
Promise containing an EnqueuedTask
Update the filterable-attributes.
Array of strings containing the attributes that can be used as filters at query time
Promise containing an EnqueuedTask
Update the localized attributes settings.
Localized attributes object
Promise containing an EnqueuedTask
Update the list of non-separator tokens. Overwrite the old list.
Array that contains non-separator tokens.
Promise containing an EnqueuedTask or null
Update the pagination settings.
Pagination object
Promise containing an EnqueuedTask
Update the proximity precision settings. Overwrite the old settings.
String that contains the new proximity precision settings.
Promise containing an EnqueuedTask or null
Update the list of ranking-rules. Overwrite the old list.
Array that contain ranking rules sorted by order of importance.
Promise containing an EnqueuedTask
Update the searchable-attributes.
Array of strings that contains searchable attributes sorted by order of importance(most to least important)
Promise containing an EnqueuedTask
Update the SearchCutoffMs settings.
Object containing SearchCutoffMsSettings
Promise containing an EnqueuedTask
Update the list of separator tokens. Overwrite the old list.
Array that contains separator tokens.
Promise containing an EnqueuedTask or null
Update all settings Any parameters not provided will be left unchanged.
Object containing parameters with their updated values
Promise containing an EnqueuedTask
Update the sortable-attributes.
Array of strings containing the attributes that can be used to sort search results at query time
Promise containing an EnqueuedTask
Update the list of stop-words. Overwrite the old list.
Array of strings that contains the stop-words.
Promise containing an EnqueuedTask
Update the list of synonyms. Overwrite the old list.
Mapping of synonyms with their associated words
Promise containing an EnqueuedTask
Update the typo tolerance settings.
Object containing the custom typo tolerance settings.
Promise containing object of the enqueued update
Wait for a task to be processed.
Task identifier
Options on timeout and interval
Promise containing an array of tasks
Wait for multiple tasks to be processed.
Tasks identifier
Options on timeout and interval
Promise containing an array of tasks
Static
createCreate an index.
Unique identifier of the Index
Index options
Request configuration options
Newly created Index object
Request configuration options