curl --request POST \
--url https://api.example.com/search/bulk/index \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"organization_id": "<string>",
"project_id": "<string>",
"entity_type": "table",
"entity_id": "mydb.analytics.public.users",
"title": "<string>",
"permission_id": "<string>",
"subtitle": "<string>",
"url": "<string>",
"embedded_text": "<string>",
"rank_boost": 1,
"search_attributes": {},
"extra_metadata": {}
}
]
'import requests
url = "https://api.example.com/search/bulk/index"
payload = [
{
"organization_id": "<string>",
"project_id": "<string>",
"entity_type": "table",
"entity_id": "mydb.analytics.public.users",
"title": "<string>",
"permission_id": "<string>",
"subtitle": "<string>",
"url": "<string>",
"embedded_text": "<string>",
"rank_boost": 1,
"search_attributes": {},
"extra_metadata": {}
}
]
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify([
{
organization_id: '<string>',
project_id: '<string>',
entity_type: 'table',
entity_id: 'mydb.analytics.public.users',
title: '<string>',
permission_id: '<string>',
subtitle: '<string>',
url: '<string>',
embedded_text: '<string>',
rank_boost: 1,
search_attributes: {},
extra_metadata: {}
}
])
};
fetch('https://api.example.com/search/bulk/index', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/search/bulk/index",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
[
'organization_id' => '<string>',
'project_id' => '<string>',
'entity_type' => 'table',
'entity_id' => 'mydb.analytics.public.users',
'title' => '<string>',
'permission_id' => '<string>',
'subtitle' => '<string>',
'url' => '<string>',
'embedded_text' => '<string>',
'rank_boost' => 1,
'search_attributes' => [
],
'extra_metadata' => [
]
]
]),
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;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/search/bulk/index"
payload := strings.NewReader("[\n {\n \"organization_id\": \"<string>\",\n \"project_id\": \"<string>\",\n \"entity_type\": \"table\",\n \"entity_id\": \"mydb.analytics.public.users\",\n \"title\": \"<string>\",\n \"permission_id\": \"<string>\",\n \"subtitle\": \"<string>\",\n \"url\": \"<string>\",\n \"embedded_text\": \"<string>\",\n \"rank_boost\": 1,\n \"search_attributes\": {},\n \"extra_metadata\": {}\n }\n]")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/search/bulk/index")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("[\n {\n \"organization_id\": \"<string>\",\n \"project_id\": \"<string>\",\n \"entity_type\": \"table\",\n \"entity_id\": \"mydb.analytics.public.users\",\n \"title\": \"<string>\",\n \"permission_id\": \"<string>\",\n \"subtitle\": \"<string>\",\n \"url\": \"<string>\",\n \"embedded_text\": \"<string>\",\n \"rank_boost\": 1,\n \"search_attributes\": {},\n \"extra_metadata\": {}\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/search/bulk/index")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "[\n {\n \"organization_id\": \"<string>\",\n \"project_id\": \"<string>\",\n \"entity_type\": \"table\",\n \"entity_id\": \"mydb.analytics.public.users\",\n \"title\": \"<string>\",\n \"permission_id\": \"<string>\",\n \"subtitle\": \"<string>\",\n \"url\": \"<string>\",\n \"embedded_text\": \"<string>\",\n \"rank_boost\": 1,\n \"search_attributes\": {},\n \"extra_metadata\": {}\n }\n]"
response = http.request(request)
puts response.read_body{
"accepted": 123
}{
"error": {
"code": "INVALID_REQUEST",
"message": "<string>",
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"details": {}
}
}{
"error": {
"code": "INVALID_REQUEST",
"message": "<string>",
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"details": {}
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"error": {
"code": "INVALID_REQUEST",
"message": "<string>",
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"details": {}
}
}Bulk index entities
Add or update one or more entities in the global search index. Each item is validated then published to the internal event stream — embedding generation and indexing happen asynchronously. Returns 202 with the count of accepted operations.
Required fields: organization_id, project_id, entity_type, entity_id, title, permission_id.
embedded_text: The text used for BM25 indexing and embedding generation. For catalog entities this should be an LLM-generated contextual summary (~1000 tokens). For other entities use title + description concatenation. The embedding vector is generated asynchronously by the search handler — publishing services do not need to compute it.
search_attributes: Flat dict[str, str] of fields that support structured query syntax on POST /search/global. All values must be strings. Standard keys for catalog entities:
name — entity name
service_name — data source name (supports service.name:X)
database_name — database name (supports database.name:X)
schema_name — schema name (supports databaseSchema.name:X)
tags — space-separated tag FQNs (supports tags.tagFQN:PII*)
is_pii_tagged — ‘true’/‘false’ (supports extension.is_pii_tagged:1)
is_sensitivity_tagged — ‘true’/‘false’
has_description — ‘true’/‘false’ (supports NOT _exists_:description)
has_owners — ‘true’/‘false’ (supports NOT _exists_:owners)
has_undescribed_columns — ‘true’/‘false’ (supports NOT _exists_:columns.description)
columns_tags_tagFQN — space-separated column tag FQNs (supports _exists_:columns.tags.tagFQN:PII*)
curl --request POST \
--url https://api.example.com/search/bulk/index \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"organization_id": "<string>",
"project_id": "<string>",
"entity_type": "table",
"entity_id": "mydb.analytics.public.users",
"title": "<string>",
"permission_id": "<string>",
"subtitle": "<string>",
"url": "<string>",
"embedded_text": "<string>",
"rank_boost": 1,
"search_attributes": {},
"extra_metadata": {}
}
]
'import requests
url = "https://api.example.com/search/bulk/index"
payload = [
{
"organization_id": "<string>",
"project_id": "<string>",
"entity_type": "table",
"entity_id": "mydb.analytics.public.users",
"title": "<string>",
"permission_id": "<string>",
"subtitle": "<string>",
"url": "<string>",
"embedded_text": "<string>",
"rank_boost": 1,
"search_attributes": {},
"extra_metadata": {}
}
]
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify([
{
organization_id: '<string>',
project_id: '<string>',
entity_type: 'table',
entity_id: 'mydb.analytics.public.users',
title: '<string>',
permission_id: '<string>',
subtitle: '<string>',
url: '<string>',
embedded_text: '<string>',
rank_boost: 1,
search_attributes: {},
extra_metadata: {}
}
])
};
fetch('https://api.example.com/search/bulk/index', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/search/bulk/index",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
[
'organization_id' => '<string>',
'project_id' => '<string>',
'entity_type' => 'table',
'entity_id' => 'mydb.analytics.public.users',
'title' => '<string>',
'permission_id' => '<string>',
'subtitle' => '<string>',
'url' => '<string>',
'embedded_text' => '<string>',
'rank_boost' => 1,
'search_attributes' => [
],
'extra_metadata' => [
]
]
]),
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;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/search/bulk/index"
payload := strings.NewReader("[\n {\n \"organization_id\": \"<string>\",\n \"project_id\": \"<string>\",\n \"entity_type\": \"table\",\n \"entity_id\": \"mydb.analytics.public.users\",\n \"title\": \"<string>\",\n \"permission_id\": \"<string>\",\n \"subtitle\": \"<string>\",\n \"url\": \"<string>\",\n \"embedded_text\": \"<string>\",\n \"rank_boost\": 1,\n \"search_attributes\": {},\n \"extra_metadata\": {}\n }\n]")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/search/bulk/index")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("[\n {\n \"organization_id\": \"<string>\",\n \"project_id\": \"<string>\",\n \"entity_type\": \"table\",\n \"entity_id\": \"mydb.analytics.public.users\",\n \"title\": \"<string>\",\n \"permission_id\": \"<string>\",\n \"subtitle\": \"<string>\",\n \"url\": \"<string>\",\n \"embedded_text\": \"<string>\",\n \"rank_boost\": 1,\n \"search_attributes\": {},\n \"extra_metadata\": {}\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/search/bulk/index")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "[\n {\n \"organization_id\": \"<string>\",\n \"project_id\": \"<string>\",\n \"entity_type\": \"table\",\n \"entity_id\": \"mydb.analytics.public.users\",\n \"title\": \"<string>\",\n \"permission_id\": \"<string>\",\n \"subtitle\": \"<string>\",\n \"url\": \"<string>\",\n \"embedded_text\": \"<string>\",\n \"rank_boost\": 1,\n \"search_attributes\": {},\n \"extra_metadata\": {}\n }\n]"
response = http.request(request)
puts response.read_body{
"accepted": 123
}{
"error": {
"code": "INVALID_REQUEST",
"message": "<string>",
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"details": {}
}
}{
"error": {
"code": "INVALID_REQUEST",
"message": "<string>",
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"details": {}
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"error": {
"code": "INVALID_REQUEST",
"message": "<string>",
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"details": {}
}
}Authorizations
Body
Service-defined fields for BM25 keyword search beyond embedded_text. Supports both flat keys and nested objects — use whichever matches your domain naturally. Flat: {'status': 'active', 'owner': 'data-team'}. Nested (OpenMetadata-style): {'service': {'name': 'mysql'}, 'tags': [{'tagFQN': 'PII.Sensitive'}]}. Queried via dot notation: 'service.name:mysql' or 'tags.tagFQN:PII*'.
Was this page helpful?

