Skip to content

Commit

Permalink
use category name directly
Browse files Browse the repository at this point in the history
  • Loading branch information
shmax committed Jun 25, 2022
1 parent 80fa823 commit 95f95b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/converter/plugins/CategoryPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ export class CategoryPlugin extends ConverterComponent {
for (const childCat of childCategories) {
let category = categories.find((cat) => cat.title === childCat);

const catBoost = categorySearchBoosts[category?.title ?? -1];
const catBoost = categorySearchBoosts[childCat ?? -1];
if (catBoost != undefined) {
child.relevanceBoost =
(child.relevanceBoost ?? 1) * catBoost;
Expand Down

0 comments on commit 95f95b3

Please sign in to comment.