from urllib.parse import urlencodefrom metadata.sdk import client, configureconfigure( host="https://your-company.open-metadata.org/api", jwt_token="your-jwt-token")rest = client().ometa.client# Find tables with a specific column nameparams = urlencode({ "fieldName": "columns.name", "fieldValue": "shop_id", "index": "table_search_index"})response = rest.get(f"/search/fieldQuery?{params}")for hit in response["hits"]["hits"]: entity = hit["_source"] print(f"{entity['fullyQualifiedName']} (score: {hit['_score']})")# Find entities with a specific tagparams = urlencode({ "fieldName": "tags.tagFQN", "fieldValue": "PII.Sensitive", "index": "table_search_index"})response = rest.get(f"/search/fieldQuery?{params}")for hit in response["hits"]["hits"]: entity = hit["_source"] print(f"{entity['fullyQualifiedName']}")
// client is an initialized OpenMetadataClient.// Find tables with a specific column namevar response = client.searchApi().fieldQuery( "columns.name", // fieldName "shop_id", // fieldValue "table_search_index", // index 0, // from 10 // size);for (var hit : response.getHits().getHits()) { var source = hit.getSource(); System.out.println(source.getFullyQualifiedName());}
# Find tables with a specific column namecurl "{base_url}/api/v1/search/fieldQuery?fieldName=columns.name&fieldValue=shop_id&index=table_search_index" \ -H "Authorization: Bearer {access_token}"# Find entities with a specific tagcurl "{base_url}/api/v1/search/fieldQuery?fieldName=tags.tagFQN&fieldValue=PII.Sensitive&index=table_search_index" \ -H "Authorization: Bearer {access_token}"# Find entities owned by a specific usercurl "{base_url}/api/v1/search/fieldQuery?fieldName=owners.name&fieldValue=admin&index=table_search_index&size=20" \ -H "Authorization: Bearer {access_token}"
from urllib.parse import urlencodefrom metadata.sdk import client, configureconfigure( host="https://your-company.open-metadata.org/api", jwt_token="your-jwt-token")rest = client().ometa.client# Find tables with a specific column nameparams = urlencode({ "fieldName": "columns.name", "fieldValue": "shop_id", "index": "table_search_index"})response = rest.get(f"/search/fieldQuery?{params}")for hit in response["hits"]["hits"]: entity = hit["_source"] print(f"{entity['fullyQualifiedName']} (score: {hit['_score']})")# Find entities with a specific tagparams = urlencode({ "fieldName": "tags.tagFQN", "fieldValue": "PII.Sensitive", "index": "table_search_index"})response = rest.get(f"/search/fieldQuery?{params}")for hit in response["hits"]["hits"]: entity = hit["_source"] print(f"{entity['fullyQualifiedName']}")
// client is an initialized OpenMetadataClient.// Find tables with a specific column namevar response = client.searchApi().fieldQuery( "columns.name", // fieldName "shop_id", // fieldValue "table_search_index", // index 0, // from 10 // size);for (var hit : response.getHits().getHits()) { var source = hit.getSource(); System.out.println(source.getFullyQualifiedName());}
# Find tables with a specific column namecurl "{base_url}/api/v1/search/fieldQuery?fieldName=columns.name&fieldValue=shop_id&index=table_search_index" \ -H "Authorization: Bearer {access_token}"# Find entities with a specific tagcurl "{base_url}/api/v1/search/fieldQuery?fieldName=tags.tagFQN&fieldValue=PII.Sensitive&index=table_search_index" \ -H "Authorization: Bearer {access_token}"# Find entities owned by a specific usercurl "{base_url}/api/v1/search/fieldQuery?fieldName=owners.name&fieldValue=admin&index=table_search_index&size=20" \ -H "Authorization: Bearer {access_token}"
Search for entities by matching a specific field to a given value. This is useful for finding entities that have a particular column name, tag, owner, or other field-level attribute.
Query Parameters
string
required
Field path to search. Common values: columns.name, tags.tagFQN, owners.name, service.name, database.name, databaseSchema.name.
string
required
Value to match against the specified field.
string
required
Search index to query. Options: table_search_index, topic_search_index, dashboard_search_index, pipeline_search_index, mlmodel_search_index, container_search_index, search_entity_search_index, glossary_term_search_index, tag_search_index, user_search_index, team_search_index, domain_search_index, data_product_search_index.
integer
default:"0"
Starting offset for pagination.
integer
default:"10"
Number of results to return.
GET /v1/search/fieldQuery
from urllib.parse import urlencodefrom metadata.sdk import client, configureconfigure( host="https://your-company.open-metadata.org/api", jwt_token="your-jwt-token")rest = client().ometa.client# Find tables with a specific column nameparams = urlencode({ "fieldName": "columns.name", "fieldValue": "shop_id", "index": "table_search_index"})response = rest.get(f"/search/fieldQuery?{params}")for hit in response["hits"]["hits"]: entity = hit["_source"] print(f"{entity['fullyQualifiedName']} (score: {hit['_score']})")# Find entities with a specific tagparams = urlencode({ "fieldName": "tags.tagFQN", "fieldValue": "PII.Sensitive", "index": "table_search_index"})response = rest.get(f"/search/fieldQuery?{params}")for hit in response["hits"]["hits"]: entity = hit["_source"] print(f"{entity['fullyQualifiedName']}")
// client is an initialized OpenMetadataClient.// Find tables with a specific column namevar response = client.searchApi().fieldQuery( "columns.name", // fieldName "shop_id", // fieldValue "table_search_index", // index 0, // from 10 // size);for (var hit : response.getHits().getHits()) { var source = hit.getSource(); System.out.println(source.getFullyQualifiedName());}
# Find tables with a specific column namecurl "{base_url}/api/v1/search/fieldQuery?fieldName=columns.name&fieldValue=shop_id&index=table_search_index" \ -H "Authorization: Bearer {access_token}"# Find entities with a specific tagcurl "{base_url}/api/v1/search/fieldQuery?fieldName=tags.tagFQN&fieldValue=PII.Sensitive&index=table_search_index" \ -H "Authorization: Bearer {access_token}"# Find entities owned by a specific usercurl "{base_url}/api/v1/search/fieldQuery?fieldName=owners.name&fieldValue=admin&index=table_search_index&size=20" \ -H "Authorization: Bearer {access_token}"