laserninja opened a new issue, #14920:
URL: https://github.com/apache/gravitino/issues/14920

   ### Describe the feature
   
   Add a server-side search API that finds catalogs, schemas, tables, views, 
columns, filesets,
   topics and models by name and comment in one request. Results can be 
filtered by type, catalog,
   schema, tag (with optional value, including inherited tags) and owner, and 
contain only objects
   the caller is allowed to load.
   
   ### Motivation
   
   Gravitino has no search. Finding "columns named email" or "everything tagged 
pii" means listing
   catalogs, schemas and tables one level at a time, which is `1 + catalogs + 
schemas` requests
   against live catalogs. Tag listing matches one exact tag, and the Domain and 
Glossary APIs are
   scoped to their own objects.
   
   The review of #12114 asked for this as a Gravitino Server search API backed 
by an indexed
   metadata inventory, with the MCP tool as a thin wrapper over it.
   
   ### Describe the solution
   
   - `POST /api/metalakes/{metalake}/search` with text matching and structured 
filters, cursor
     pagination and documented ranking tiers.
   - A search table in the relational store, written in the same transaction as 
each entity write,
     so results are consistent on every server as soon as a write returns.
   - Tag and owner filters join the existing relation tables, following the 
documented tag
     inheritance rules.
   - Results filtered with the same authorization rules as list endpoints. No 
totals or facet
     counts, so hidden objects are not revealed.
   - Java client, Python client and an MCP `search_metadata` tool.
   
   A design document will follow in a PR. Search covers objects recorded in 
Gravitino's store.
   Importing objects never loaded through Gravitino is a separate follow-up, 
related to #13313.
   
   ### Additional context
   
   - Discussion: https://github.com/apache/gravitino/discussions/13575
   - Prior request: #2172
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to