@@ -1,3 +1,4 @@
+// TODO: https://redmine.weseek.co.jp/issues/168446
import type { estypes } from '@elastic/elasticsearch7';
type Mappings = {
@@ -14,6 +14,7 @@ export const isES8Client = (delegator: ElasticsearchClientDelegator): delegator
return delegator.delegetorVersion === 8;
};
export const isES9Client = (delegator: ElasticsearchClientDelegator): delegator is ES9ClientDelegator => {
return delegator.delegetorVersion === 9;
@@ -317,6 +317,7 @@ class ElasticsearchDelegator implements SearchDelegator<Data, ESTermsKey, ESQuer
}
async createIndex(index: string) {
+ // TODO: https://redmine.weseek.co.jp/issues/168446
if (isES7Client(this.client)) {
const { mappings } = await import('^/resource/search/mappings-es7');
return this.client.indices.create({