Compare commits
2 Commits
352be1686a
...
9de6ab8799
| Author | SHA1 | Date | |
|---|---|---|---|
| 9de6ab8799 | |||
| 86b0c29dcf |
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user