* dedicated search results page (redux) * Update SearchResults.tsx * adding pagination * fix pagination * say something on NoQuery * better Flash * tidying link * small fixes for results * debug info * l18n the meta info * inDebugMode * basic jest rendering of the skeleton page * basic jest rendering test * fix content tests * better document title * fix tests * quote query in page title * use home page sidebar * something when nothing is found * parseInt no longer needs the 10 * fix linting tests * fix test * prettier * Update pages/search.tsx Co-authored-by: Rachael Sewell <rachmari@github.com> Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com> Co-authored-by: Rachael Sewell <rachmari@github.com>
32 lines
482 B
TypeScript
32 lines
482 B
TypeScript
export type SearchResultHitT = {
|
|
id: string
|
|
url: string
|
|
title: string
|
|
breadcrumbs: string
|
|
highlights: {
|
|
title?: string[]
|
|
content?: string[]
|
|
}
|
|
score?: number
|
|
popularity?: number
|
|
es_url?: string
|
|
}
|
|
|
|
type SearchResultsMeta = {
|
|
found: {
|
|
value: number
|
|
relation: string
|
|
}
|
|
took: {
|
|
query_msec: number
|
|
total_msec: number
|
|
}
|
|
page: number
|
|
size: number
|
|
}
|
|
|
|
export type SearchResultsT = {
|
|
meta: SearchResultsMeta
|
|
hits: SearchResultHitT[]
|
|
}
|