SearchConfig
Interface
Configuration for client-side direct search.
Returned by lynkow.search.getConfig(). Use these values to initialize
a search client in the browser for instant autocomplete without
round-tripping through your server.
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | Short-lived tenant token (JWT, 1-hour expiry) scoped to your site's index |
|
| No | Public Lynkow search host URL (e.g. |
|
| No | Lynkow search index name for this site, of the form<br> |
SearchHit
Interface
A single search result (hit) returned by Lynkow Instant Search.
Contains article metadata, URL path, and optional highlighted matches. Only published content appears in search results.
Property | Type | Optional | Description |
|---|---|---|---|
|
| Yes | Highlighted matches with |
|
| No | Full name of the content author (or the site's default author<br>when the content has no explicit author). Always non-empty because<br>the indexer requires a tokenizable value. |
|
| No | Categories assigned to this content as minimal |
|
| No | Short text summary shown in the search dropdown. Taken from the<br>content's |
|
| No | Featured image URL, or |
|
| No | Content UUID. Matches |
|
| No | Content locale code (e.g. |
|
| No | SEO meta description. Falls back to excerpt when the content<br>has no override. Max ~500 characters, typically under 160 for<br>search snippets. |
|
| No | SEO meta title. Falls back to title when the content has no<br>override. Max ~255 characters, generally kept under 60 for search<br>result listings. |
|
| No | Full URL path including locale and category prefix (e.g. |
|
| No | Publication date as Unix timestamp (seconds) |
|
| No | URL-safe slug. Unique within the site + locale combination. |
|
| No | Tags assigned to this content as minimal |
|
| No | Content title in the searched locale. Never empty (the indexer skips<br>untitled drafts). May contain |
|
| No | Content type slug. Currently always |
|
| No | Last update date as Unix timestamp (seconds) |
SearchOptions
Interface
Options for lynkow.search.search().
All filters are optional. When omitted, searches across all published content in all locales.
Extends: BaseRequestOptions
Property | Type | Optional | Description |
|---|---|---|---|
|
| Yes | Filter by category slug (e.g. |
|
| Yes | Raw |
|
| Yes | Results per page (1--100). Defaults to |
|
| Yes | Filter by locale code (e.g. |
|
| Yes | Page number (1-based). Defaults to |
|
| Yes | Filter by tag slug (e.g. |
SearchProfilePublic
Interface
A public-facing search profile descriptor.
Returned by lynkow.search.listProfiles(). Profiles let site admins
create scoped search experiences (e.g. "API docs", "Marketing", "Help")
each with its own facets and result shape, while sharing a single
underlying search index per site.
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | Default page size applied when the request omits |
|
| No | Optional admin-authored description explaining what the profile<br>covers. |
|
| No | Subset of fields the profile returns. Pass verbatim as the<br> |
|
| No | Field names available for facet aggregation when querying this<br>profile. Pass these to a UI that renders facet checkboxes (e.g.<br> |
|
| No | Pre-compiled scope filter, ready to pass verbatim as the |
|
| No | Upper bound on |
|
| No | Human-readable label shown in profile selectors. Localized to the<br>site's default locale at the time the profile was last edited. |
|
| No | Subset of indexed fields that the profile actually queries. Pass<br>verbatim as the |
|
| No | URL-safe identifier for the profile (e.g. |
|
| No | Default sort directives (e.g. |
SearchResponse
Interface
Response from lynkow.search.search().
Contains an array of matching articles and pagination metadata.
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | Matching articles for the current page of results, already ordered<br>by relevance. Empty array when the query matches nothing. |
|
| No | Pagination and query metadata for rendering controls like "N results<br>in 42 ms" or a paginator. Uses snake-free naming ( |