zahmis 4 лет назад
Родитель
Сommit
45f2c1fe69
1 измененных файлов с 5 добавлено и 8 удалено
  1. 5 8
      packages/app/src/server/service/search-delegator/elasticsearch.js

+ 5 - 8
packages/app/src/server/service/search-delegator/elasticsearch.js

@@ -864,9 +864,7 @@ class ElasticsearchDelegator {
         '*': {
         '*': {
           type: 'plain',
           type: 'plain',
           fragment_size: 30,
           fragment_size: 30,
-          // number_of_fragments: 3,
           fragmenter: 'simple',
           fragmenter: 'simple',
-          // _source: fields,
         },
         },
       },
       },
     };
     };
@@ -886,12 +884,11 @@ class ElasticsearchDelegator {
 
 
     this.appendFunctionScore(query, queryString);
     this.appendFunctionScore(query, queryString);
     this.appendHighlight(query);
     this.appendHighlight(query);
-    const hoge = await this.search(query);
-    console.log(hoge, 895, 'search した結果');
-    console.log(hoge.data[0].highlight, 895, '_sourceの中身');
-    console.log(hoge.data[1].highlight, 895, '_sourceの中身その2');
-    console.log(hoge.data[2].highlight, 895, '_sourceの中身その2');
-    return hoge;
+    return this.search(query);
+    // const hoge = await this.search(query);
+
+    // console.log(hoge.data[0].highlight, 895, '_sourceの中身その1');
+    // return hoge;
   }
   }
 
 
   parseQueryString(queryString) {
   parseQueryString(queryString) {