Increase the threshold value of enabling middle content search.

This commit is contained in:
yangdx
2025-04-18 17:46:05 +08:00
parent 01483e2fd0
commit 300a092132

View File

@@ -51,7 +51,7 @@ const GraphLabels = () => {
// Add middle-content matching if results are few
// This enables matching content in the middle of text, not just from the beginning
if (result.length < 5) {
if (result.length < 15) {
// Get already matched labels to avoid duplicates
const matchedLabels = new Set(result)