Extracts the top-k documents from a QueryCommandOutput object.
getQueryDocs(response: QueryCommandOutput, pageSize: number): Document<__type>[]| Name | Type | Description |
|---|---|---|
response* | QueryCommandOutput | The QueryCommandOutput object to extract the documents from. |
pageSize* | number | The number of documents to extract. |