lrf 7 月之前
父節點
當前提交
630a558b2a
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/service/accurateMatching.service.ts

+ 4 - 4
src/service/accurateMatching.service.ts

@@ -34,15 +34,15 @@ export class AccurateMatchingService {
   //由供给信息查询
   async forDemandSearch(keyword: string, skip = 0, limit = 10, id) {
     const fields = ['name', 'tags', 'brief'];
-    const config = { index: ['demand', 'achievement'], fields };
-    const origin_index = 'supply';
+    const config = { index: ['supply', 'achievement'], fields };
+    const origin_index = 'demand';
     return await this.manyIndexsSearch(keyword, config, skip, limit, origin_index, id);
   }
   // 由需求信息查询
   async forSupplySearch(keyword: string, skip = 0, limit = 10, id) {
     const fields = ['name', 'tags', 'brief'];
-    const config = { index: ['supply', 'achievement'], fields };
-    const origin_index = 'demand';
+    const config = { index: ['demand', 'achievement'], fields };
+    const origin_index = 'supply';
     return await this.manyIndexsSearch(keyword, config, skip, limit, origin_index, id);
   }