fix: 调整模糊匹配阈值
All checks were successful
deploy to server / build-and-deploy (push) Successful in 3m6s
All checks were successful
deploy to server / build-and-deploy (push) Successful in 3m6s
- 将阈值由0.3调整为0.6
This commit is contained in:
@ -77,7 +77,7 @@
|
||||
const fuzzyMatchedDocuments = fuzzyMatch(documents.value, {
|
||||
keyword: filters.keyword,
|
||||
keys: ['title'],
|
||||
threshold: 0.3,
|
||||
threshold: 0.6,
|
||||
});
|
||||
return fuzzyMatchedDocuments.filter((doc: DocumentListView) => {
|
||||
const matchProduct = filters.selectedProduct
|
||||
|
||||
@ -76,8 +76,8 @@
|
||||
const filteredQuestions = computed(() => {
|
||||
const fuzzyMatchedQuestions = fuzzyMatch(questions.value, {
|
||||
keyword: filters.keyword,
|
||||
keys: ['title', 'content'],
|
||||
threshold: 0.3,
|
||||
keys: ['title'],
|
||||
threshold: 0.6,
|
||||
});
|
||||
return fuzzyMatchedQuestions.filter((question: QuestionListView) => {
|
||||
const matchProduct = filters.selectedProduct
|
||||
|
||||
Reference in New Issue
Block a user