UNPKG

@kit-data-manager/react-search-component

Version:

All-in-one component for rendering an elastic search UI for searching anything. Built-in support for visualizing related items in a graph and resolving unique identifiers.

11 lines (10 loc) 581 B
import { SearchConfig } from "../lib/config/SearchConfig"; import type { estypes } from "@elastic/elasticsearch"; export declare function relatedItemsQuery(config: SearchConfig, query: { index: string | string[]; term: string; amount: number; searchFields?: string[]; pidField?: string; }): Promise<estypes.SearchResponseBody<unknown, Record<string, estypes.AggregationsAggregate>>>; export declare function backgroundSearchQuery(config: SearchConfig, query: string): Promise<estypes.SearchResponseBody<unknown, Record<string, estypes.AggregationsAggregate>>>;