|
@@ -294,7 +294,7 @@ export class ElasticsearchService implements OnModuleInit, OnModuleDestroy {
|
|
|
priceWithTax: {
|
|
priceWithTax: {
|
|
|
value: source.priceWithTax,
|
|
value: source.priceWithTax,
|
|
|
},
|
|
},
|
|
|
- score: hit._score,
|
|
|
|
|
|
|
+ score: hit._score || 0,
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
this.addCustomMappings(result, source, this.options.customProductVariantMappings);
|
|
this.addCustomMappings(result, source, this.options.customProductVariantMappings);
|
|
@@ -328,7 +328,7 @@ export class ElasticsearchService implements OnModuleInit, OnModuleDestroy {
|
|
|
max: source.priceWithTaxMax,
|
|
max: source.priceWithTaxMax,
|
|
|
},
|
|
},
|
|
|
channelIds: [],
|
|
channelIds: [],
|
|
|
- score: hit._score,
|
|
|
|
|
|
|
+ score: hit._score || 0,
|
|
|
};
|
|
};
|
|
|
this.addCustomMappings(result, source, this.options.customProductMappings);
|
|
this.addCustomMappings(result, source, this.options.customProductMappings);
|
|
|
return result;
|
|
return result;
|