Shun Miyazawa 9 месяцев назад
Родитель
Сommit
455bf4cf78

+ 1 - 0
apps/app/resource/search/mappings-es7.ts

@@ -1,3 +1,4 @@
+// TODO: https://redmine.weseek.co.jp/issues/168446
 import type { estypes } from '@elastic/elasticsearch7';
 
 type Mappings = {

+ 1 - 0
apps/app/src/server/service/search-delegator/elasticsearch-client-delegator/interfaces.ts

@@ -14,6 +14,7 @@ export const isES8Client = (delegator: ElasticsearchClientDelegator): delegator
   return delegator.delegetorVersion === 8;
 };
 
+// TODO: https://redmine.weseek.co.jp/issues/168446
 export const isES9Client = (delegator: ElasticsearchClientDelegator): delegator is ES9ClientDelegator => {
   return delegator.delegetorVersion === 9;
 };

+ 1 - 0
apps/app/src/server/service/search-delegator/elasticsearch.ts

@@ -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({