Search
Free-text search across an entity and its compositions, pushed into the database rather than filtered in the service. Declared search, database similarity search and filtering in application code are often lumped together.
Overview
@sap/cds Compiles @cds.search into database-level search predicates and serves $search on exposed collections.
com.sap.cds:cds-services-bom Adds a search predicate to a CQL Select query over an entity's searchable elements, matched with a search term or a search expression built from AND, OR and NOT operators.
Not covered: At a substring match on text in the service's own database, such as like '%Heights%' in standard SQL: matching that tolerates typing errors and sorts by score is a feature of SAP HANA CloudSAP HANA CloudThe managed database under most of this: CAP's default target, the store Datasphere and Analytics Cloud sit on, and a service with plans and components.sap official, btp, and $search inside $expand is marked n/a for Node.js and Java. Describing searchable entities, autocomplete fields and navigation targets to a search UI across services is outside it, and is what the annotations of @kamlendra/search-vocab@kamlendra/search-vocabA CDS annotation vocabulary for entity search — @search.entity.group, @search.autocomplete and friends — with a schema-discovery service exposing getEntities and getSchema.independent, cap are for.
@kamlendra/search-vocab@kamlendra/search-vocabA CDS annotation vocabulary for entity search — @search.entity.group, @search.autocomplete and friends — with a schema-discovery service exposing getEntities and getSchema.independent, cap is independent and executes no search of its own; how its vocabulary relates to @cds.search has not been assessed.
Artifacts
Content
Details
Coverage
For your agent
- Ref
capability:search- JSON
- /capabilities/search.json
- MCP
- Connecting an agent