import type { Content } from './Content'; import type { ContentSearchRefinement } from './ContentSearchRefinement'; /** * @type ContentSearchResult: * * @property query: The query String that was searched for. * - **Max Length:** 256 * * @property hits: The sorted array of search hits. Can be empty. * * @property selectedRefinements: Map of selected refinement attribute id/value(s) pairs. The sorting order is the same like in request URL. * * @property refinements: The sorted array of search refinements. Can be empty. * * @property offset: The zero-based index of the first hit/data to include in the result. * * @property limit: Maximum records to retrieve per request. The limit with its constraints (minimum, maximum, default) is defined by the request parameter `limit` of the endpoint returning this schema. * * @property total: The total number of hits that match the search\'s criteria. This can be greater than the number of results returned as search results are pagenated. * */ export type ContentSearchResult = { query?: string; hits: Array; selectedRefinements?: { [key: string]: string; }; refinements?: Array; offset: number; limit: number; total: number; } & { [key: string]: any; };