Advance or Reset Search Index
curl --request POST \
--url https://api.zerodrive.dev/v1/search/reindex \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"steps": 4,
"reset": false
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({steps: 4, reset: false})
};
fetch('https://api.zerodrive.dev/v1/search/reindex', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zerodrive.dev/v1/search/reindex"
payload = {
"steps": 4,
"reset": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}Advance or Reset Search Index
Run up to 12 indexing steps or reset the per-account search index cursor.
POST
https://api.zerodrive.dev
/
v1
/
search
/
reindex
Advance or Reset Search Index
curl --request POST \
--url https://api.zerodrive.dev/v1/search/reindex \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"steps": 4,
"reset": false
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({steps: 4, reset: false})
};
fetch('https://api.zerodrive.dev/v1/search/reindex', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zerodrive.dev/v1/search/reindex"
payload = {
"steps": 4,
"reset": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}
