Ranked Full-Text Search
curl --request POST \
--url https://api.zerodrive.dev/v1/search/full-text \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "<string>",
"drive_id": "primary",
"branch": "main",
"prefix": "<string>",
"extensions": [
"<string>"
],
"limit": 25
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
query: '<string>',
drive_id: 'primary',
branch: 'main',
prefix: '<string>',
extensions: ['<string>'],
limit: 25
})
};
fetch('https://api.zerodrive.dev/v1/search/full-text', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zerodrive.dev/v1/search/full-text"
payload = {
"query": "<string>",
"drive_id": "primary",
"branch": "main",
"prefix": "<string>",
"extensions": ["<string>"],
"limit": 25
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}Ranked Full-Text Search
Search indexed text across main or a drive branch with phrase, heading, and extension filters.
POST
https://api.zerodrive.dev
/
v1
/
search
/
full-text
Ranked Full-Text Search
curl --request POST \
--url https://api.zerodrive.dev/v1/search/full-text \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "<string>",
"drive_id": "primary",
"branch": "main",
"prefix": "<string>",
"extensions": [
"<string>"
],
"limit": 25
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
query: '<string>',
drive_id: 'primary',
branch: 'main',
prefix: '<string>',
extensions: ['<string>'],
limit: 25
})
};
fetch('https://api.zerodrive.dev/v1/search/full-text', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zerodrive.dev/v1/search/full-text"
payload = {
"query": "<string>",
"drive_id": "primary",
"branch": "main",
"prefix": "<string>",
"extensions": ["<string>"],
"limit": 25
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}Authorizations
Body
application/json
Response
Ranked full-text search hits
The response is of type object.

