HTTP request
curl \
-X PATCH 'MEILISEARCH_URL/experimental-features/' \
-H 'Authorization: Bearer API_KEY' \
-H 'Content-Type: application/json' \
--data-binary '{
"metrics": true
}'client.update_experimental_features({"metrics": True})client.update_experimental_features(metrics: true)client.ExperimentalFeatures().SetMetrics(true).Update()let client = Client::new("MEILISEARCH_URL", Some("apiKey"));
let features = ExperimentalFeatures::new(&client);
features.set_metrics(true)
let res = features
.update()
.await
.unwrap();const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
metrics: true,
logsRoute: true,
tasksStreamingRoute: true,
editDocumentsByFunction: true,
containsFilter: true,
dynamicSearchRules: true,
network: true,
getTaskDocumentsRoute: true,
taskQueueCompactionRoute: true,
compositeEmbedders: true,
chatCompletions: true,
multimodal: true,
foreignKeys: true,
disableDocumentsFetchQueue: true,
legacySearch: true,
renderRoute: true,
mcpRoute: true
})
};
fetch('http://localhost:7700/experimental-features', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "7700",
CURLOPT_URL => "http://localhost:7700/experimental-features",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'metrics' => true,
'logsRoute' => true,
'tasksStreamingRoute' => true,
'editDocumentsByFunction' => true,
'containsFilter' => true,
'dynamicSearchRules' => true,
'network' => true,
'getTaskDocumentsRoute' => true,
'taskQueueCompactionRoute' => true,
'compositeEmbedders' => true,
'chatCompletions' => true,
'multimodal' => true,
'foreignKeys' => true,
'disableDocumentsFetchQueue' => true,
'legacySearch' => true,
'renderRoute' => true,
'mcpRoute' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.patch("http://localhost:7700/experimental-features")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"metrics\": true,\n \"logsRoute\": true,\n \"tasksStreamingRoute\": true,\n \"editDocumentsByFunction\": true,\n \"containsFilter\": true,\n \"dynamicSearchRules\": true,\n \"network\": true,\n \"getTaskDocumentsRoute\": true,\n \"taskQueueCompactionRoute\": true,\n \"compositeEmbedders\": true,\n \"chatCompletions\": true,\n \"multimodal\": true,\n \"foreignKeys\": true,\n \"disableDocumentsFetchQueue\": true,\n \"legacySearch\": true,\n \"renderRoute\": true,\n \"mcpRoute\": true\n}")
.asString();{
"metrics": true,
"logsRoute": false,
"tasksStreamingRoute": false,
"editDocumentsByFunction": false,
"containsFilter": false,
"dynamicSearchRules": false,
"network": false,
"getTaskDocumentsRoute": false,
"taskQueueCompactionRoute": false,
"compositeEmbedders": false,
"chatCompletions": false,
"multimodal": false,
"foreignKeys": false,
"disableDocumentsFetchQueue": false,
"legacySearch": false,
"renderRoute": false,
"mcpRoute": false
}{
"message": "The Authorization header is missing. It must use the bearer authorization method.",
"code": "missing_authorization_header",
"type": "auth",
"link": "https://docs.meilisearch.com/errors#missing_authorization_header"
}Experimental features
Configure experimental features
Enable or disable experimental features at runtime.
PATCH
/
experimental-features
HTTP request
curl \
-X PATCH 'MEILISEARCH_URL/experimental-features/' \
-H 'Authorization: Bearer API_KEY' \
-H 'Content-Type: application/json' \
--data-binary '{
"metrics": true
}'client.update_experimental_features({"metrics": True})client.update_experimental_features(metrics: true)client.ExperimentalFeatures().SetMetrics(true).Update()let client = Client::new("MEILISEARCH_URL", Some("apiKey"));
let features = ExperimentalFeatures::new(&client);
features.set_metrics(true)
let res = features
.update()
.await
.unwrap();const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
metrics: true,
logsRoute: true,
tasksStreamingRoute: true,
editDocumentsByFunction: true,
containsFilter: true,
dynamicSearchRules: true,
network: true,
getTaskDocumentsRoute: true,
taskQueueCompactionRoute: true,
compositeEmbedders: true,
chatCompletions: true,
multimodal: true,
foreignKeys: true,
disableDocumentsFetchQueue: true,
legacySearch: true,
renderRoute: true,
mcpRoute: true
})
};
fetch('http://localhost:7700/experimental-features', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "7700",
CURLOPT_URL => "http://localhost:7700/experimental-features",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'metrics' => true,
'logsRoute' => true,
'tasksStreamingRoute' => true,
'editDocumentsByFunction' => true,
'containsFilter' => true,
'dynamicSearchRules' => true,
'network' => true,
'getTaskDocumentsRoute' => true,
'taskQueueCompactionRoute' => true,
'compositeEmbedders' => true,
'chatCompletions' => true,
'multimodal' => true,
'foreignKeys' => true,
'disableDocumentsFetchQueue' => true,
'legacySearch' => true,
'renderRoute' => true,
'mcpRoute' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.patch("http://localhost:7700/experimental-features")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"metrics\": true,\n \"logsRoute\": true,\n \"tasksStreamingRoute\": true,\n \"editDocumentsByFunction\": true,\n \"containsFilter\": true,\n \"dynamicSearchRules\": true,\n \"network\": true,\n \"getTaskDocumentsRoute\": true,\n \"taskQueueCompactionRoute\": true,\n \"compositeEmbedders\": true,\n \"chatCompletions\": true,\n \"multimodal\": true,\n \"foreignKeys\": true,\n \"disableDocumentsFetchQueue\": true,\n \"legacySearch\": true,\n \"renderRoute\": true,\n \"mcpRoute\": true\n}")
.asString();{
"metrics": true,
"logsRoute": false,
"tasksStreamingRoute": false,
"editDocumentsByFunction": false,
"containsFilter": false,
"dynamicSearchRules": false,
"network": false,
"getTaskDocumentsRoute": false,
"taskQueueCompactionRoute": false,
"compositeEmbedders": false,
"chatCompletions": false,
"multimodal": false,
"foreignKeys": false,
"disableDocumentsFetchQueue": false,
"legacySearch": false,
"renderRoute": false,
"mcpRoute": false
}{
"message": "The Authorization header is missing. It must use the bearer authorization method.",
"code": "missing_authorization_header",
"type": "auth",
"link": "https://docs.meilisearch.com/errors#missing_authorization_header"
}Authorizations
An API key is a token that you provide when making API calls. Read more about how to secure your project.
Include the API key to the Authorization header, for instance:
-H 'Authorization: Bearer 6436fc5237b0d6e0d64253fbaac21d135012ecf1'
If you use a SDK, ensure you instantiate the client with the API key, for instance with JS SDK:
const client = new MeiliSearch({
host: 'MEILISEARCH_URL',
apiKey: '6436fc5237b0d6e0d64253fbaac21d135012ecf1'
});
Body
application/json
Experimental features that can be toggled at runtime
Response
Experimental features are returned.
Experimental features that can be toggled at runtime