Higher scores are better. Results carry the full DocEntry (including category, summary, keywords, and url when available) so callers can triage matches without a follow-up read.
When workspace is provided, the categories relevant to those markers (e.g. sfra for an SFRA project, script-api/job-step for any cartridge project, pwa-kit-managed-runtime/commerce-api for PWA Kit, sfnext/commerce-api for Storefront Next — plus the always-relevant docs) are boosted. It only ever reorders results; use category/enabledCategories to hard-scope.
// Favor the current workspace's docs (nothing hidden)searchDocs('deploy bundle', {workspace: 'pwa-kit-v3'});// Hard-scope to one category insteadsearchDocs('components', {category: 'sfnext'});