class SearchApiLoaderClass representing a document loader for loading search results from the SearchApi. It extends the BaseDocumentLoader class.
Builds the URL for the SearchApi search request.
Loads the search results from the SearchApi.
Processes the response data from the SearchApi search request and converts it into an array of Documents.
const loader = new SearchApiLoader({
q: "{query}",
apiKey: "{apiKey}",
engine: "google",
});
const docs = await loader.load();