{"modulePath":"github.com/txn2/mcp-data-platform","version":"v1.171.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package portalsearch\n\nPackage portalsearch bridges the portal's GET /search endpoint to the unified knowledge router.\n\n## Types\n\n```go\ntype Adapter struct {\n\tRouter *knowledge.Router\n}\n```\nAdapter bridges the portal's GET /search endpoint to the unified knowledge router. It lives under internal/httpserver (not pkg/portal) because pkg/knowledge already imports pkg/portal for the asset and knowledge-page stores; the adapter maps the portal-local search types to and from the knowledge types so neither package needs to import the other.\n\n```go\nfunc (a Adapter) Search(ctx context.Context, q portal.SearchQuery) (portal.SearchResult, error)\n```\nSearch forwards a portal search to the knowledge router, mapping the request and response across the two type sets. No ranking or scope logic is added: the router owns identity scoping, fusion, and allocation.\n\n","path":"github.com/txn2/mcp-data-platform/internal/httpserver/portalsearch","name":"portalsearch","synopsis":"Package portalsearch bridges the portal's GET /search endpoint to the unified knowledge router.","isRedistributable":true}
