Abstract method that must be implemented by any class that extends
BaseDocumentCompressor. This method takes an array of Document
objects and a query string as parameters and returns a Promise that
resolves with an array of compressed Document objects.
compressDocuments(
documents: DocumentInterface<Record<string, any>>[],
query: string,
callbacks: Callbacks
): Promise<DocumentInterface<Record<string, any>>[]>| Name | Type | Description |
|---|---|---|
documents* | DocumentInterface<Record<string, any>>[] | An array of |
query* | string | A query string. |
callbacks | Callbacks |