Skip to content

Commit

Permalink
fix(search): widened pillar result set
Browse files Browse the repository at this point in the history
  • Loading branch information
AndySakov committed Dec 11, 2024
1 parent 9dcd3ab commit 243f41f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/search/search.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -455,10 +455,10 @@ export class SearchService {
...headerText,
activePillar: {
slug: params.pillar,
items: go(params.item, items, {
limit: 20,
threshold: 0.3,
}).map(x => x.target),
items: [
wanted,
...items.filter(x => sluggify(x) !== wanted).slice(0, 20),
].filter(Boolean),
},
altPillars,
},
Expand Down

0 comments on commit 243f41f

Please sign in to comment.