(modelName: string, id: string)
| 36 | } |
| 37 | |
| 38 | async delete(modelName: string, id: string) { |
| 39 | const index = this.toIndex(modelName); |
| 40 | const result = await this.client.delete({ index, id: id.toString() }); |
| 41 | LogService.debug(`\t🔄 ES.delete(${index}) => ${id}`); |
| 42 | return result; |
| 43 | } |
| 44 | |
| 45 | async search(modelName: string, page: number, size: number, body: any) { |
| 46 | const index = this.toIndex(modelName); |