Skip to main content
POST
Unified Search

Authorizations

Authorization
string
header
required

API-Token aus dem Big-Panda-Admin-UI unter Einstellungen → API-Keys. Header: Authorization: Bearer <token>.

Headers

X-Scopes
string
default:""

Space-separated scope set from the token (ADR-015)

Body

application/json

Unified search across knowledge entries and/or products.

The sources parameter controls which data pools are searched. Per-source tuning lives in knowledge (and later products) sub-objects so consumer-types can scope each pool separately.

query
string
required
Required string length: 1 - 2000
sources
string[]

Which sources to search: 'knowledge', 'products', or both

limit
integer
default:10
Required range: 1 <= x <= 100
min_similarity
number | null
Required range: 0 <= x <= 1
language
string | null

Filter by language

site_id
string | null

Filter products by site (UUID or slug)

knowledge
KnowledgeSearchOptions · object | null

Optional per-source configuration for knowledge entries.

Sprint 7.3 — caller can scope the knowledge results without changing the rest of the search request. Empty/None means "no constraint on this axis".

Response

Successful Response

Combined search results.

Two views on the same data:

  • Sectioned view (Block C strategy): treffer/ergebnisse/ aehnliche/vielleicht — what the new widget renders.
  • Legacy flat view: exact_matches + products + knowledge — kept filled for backward-compat with the RAG-Engine and the pre-refactor widget. Removed once all consumers migrated.

Plus search_log_id — the row-id of the persisted SearchLog, so the widget can later POST click events tied to this search.

query
string
required
sources_searched
string[]
required
search_log_id
string | null
treffer
ProductSearchHit · object[]
ergebnisse
ProductSearchHit · object[]
aehnliche
ProductSearchHit · object[]
vielleicht
ProductSearchHit · object[]
layer_results
Layer Results · object
latency_breakdown
Latency Breakdown · object
latency_ms
integer
default:0
exact_matches
ProductSearchHit · object[]
knowledge
KnowledgeSearchHit · object[]
products
ProductSearchHit · object[]