Compare commits

..

2 Commits

Author SHA1 Message Date
9de6ab8799 fix: 调整模糊匹配阈值
All checks were successful
deploy to server / build-and-deploy (push) Successful in 3m6s
- 将阈值由0.3调整为0.6
2025-11-10 16:42:56 +08:00
86b0c29dcf fix: 调整模糊匹配阈值
Some checks failed
deploy to server / build-and-deploy (push) Has been cancelled
- 将阈值有0.3调整至0.6
2025-11-10 16:42:30 +08:00
2 changed files with 3 additions and 3 deletions

View File

@ -77,7 +77,7 @@
const fuzzyMatchedDocuments = fuzzyMatch(documents.value, { const fuzzyMatchedDocuments = fuzzyMatch(documents.value, {
keyword: filters.keyword, keyword: filters.keyword,
keys: ['title'], keys: ['title'],
threshold: 0.3, threshold: 0.6,
}); });
return fuzzyMatchedDocuments.filter((doc: DocumentListView) => { return fuzzyMatchedDocuments.filter((doc: DocumentListView) => {
const matchProduct = filters.selectedProduct const matchProduct = filters.selectedProduct

View File

@ -76,8 +76,8 @@
const filteredQuestions = computed(() => { const filteredQuestions = computed(() => {
const fuzzyMatchedQuestions = fuzzyMatch(questions.value, { const fuzzyMatchedQuestions = fuzzyMatch(questions.value, {
keyword: filters.keyword, keyword: filters.keyword,
keys: ['title', 'content'], keys: ['title'],
threshold: 0.3, threshold: 0.6,
}); });
return fuzzyMatchedQuestions.filter((question: QuestionListView) => { return fuzzyMatchedQuestions.filter((question: QuestionListView) => {
const matchProduct = filters.selectedProduct const matchProduct = filters.selectedProduct