|
@@ -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);
|
|
|
}
|
|
|
|