Skip to content

Commit

Permalink
temp: filter by [score >= 0.01] to avoid performance issue
Browse files Browse the repository at this point in the history
  • Loading branch information
juice49 committed Nov 29, 2024
1 parent d2cb895 commit dc51a37
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ export function createSearchQuery(
`*[${filters.join(' && ')}]`,
isScored ? ['|', `score(${score.join(', ')})`] : [],
['|', `order(${toOrderClause(sortOrder)})`],
isScored ? `[_score > 0]` : [],
// TODO: Revert to `[_score > 0]` when Content Lake is ready.
isScored ? `[_score >= 0.01]` : [],
`[0...$__limit]`,
`{${projection}}`,
]
Expand Down

0 comments on commit dc51a37

Please sign in to comment.