Represents a search connector.

interface ISearchConnector {
    search(query: string, apiKey: string, engineId: string): Promise<ISearchConnectorResult[]>;
}

Methods

Methods

  • Searches for the query.

    Parameters

    • query: string

      The query to search for.

    • apiKey: string

      The API key to use for the search.

    • engineId: string

      The engine ID to use for the search.

    Returns Promise<ISearchConnectorResult[]>

    A promise that resolves with the search results.