portalsearch

package
v1.171.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2026 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package portalsearch bridges the portal's GET /search endpoint to the unified knowledge router.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter struct {
	Router *knowledge.Router
}

Adapter 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.

func (Adapter) Search

Search 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL