@coveo/platform-client
Version:
The main goal of this package is to provide an easy to configure and straightforward way of querying Coveo Cloud APIs using JavaScript.
16 lines • 838 B
JavaScript
import API from '../../APICore.js';
import Resource from '../Resource.js';
export default class SearchAnalysis extends Resource {
static baseUrl = '/rest/search/v3/analysis';
/**
* Replay a query that was already done and get inspection details.
* @param id The SearchUID of the request to replay.
* @param from The inclusive date at which to start looking for the request. Example: 2019-08-24T14:15:22Z
* @param to The inclusive date at which to stop looking for the SearchUID. When omitted searches up until the most recent requests. Example:2019-08-24T14:15:22Z
* @returns
*/
replay(id, from, to) {
return this.api.post(`${SearchAnalysis.baseUrl}/inspect/replay?organizationId=${API.orgPlaceholder}`, { id, dateRange: { from, to } });
}
}
//# sourceMappingURL=SearchAnalysis.js.map