mirror of
https://github.com/coracle-social/coracle.git
synced 2024-09-18 19:23:40 +00:00
Reduce threshold for fuzzy search
This commit is contained in:
parent
d65aa309db
commit
9f4c8becd6
@ -6,6 +6,7 @@
|
||||
- [x] Add support for parsing and displaying lnurl invoices
|
||||
- [x] Add advanced search to feeds with a summary of the filter applied
|
||||
- [x] Improve url parsing
|
||||
- [x] Reduce threshold for fuzzy search
|
||||
|
||||
# 0.2.30
|
||||
|
||||
|
@ -237,10 +237,13 @@ export const searchPeople = watch("people", t => {
|
||||
$or: [{"kind0.name": {$type: "string"}}, {"kind0.display_name": {$type: "string"}}],
|
||||
})
|
||||
|
||||
return fuzzy(people, {keys: ["kind0.name", "kind0.display_name", "kind0.about", "pubkey"]})
|
||||
return fuzzy(people, {
|
||||
keys: ["kind0.name", "kind0.display_name", "kind0.about", "pubkey"],
|
||||
threshold: 0.3,
|
||||
})
|
||||
})
|
||||
|
||||
export const searchTopics = watch("topics", t => fuzzy(t.all(), {keys: ["name"]}))
|
||||
export const searchTopics = watch("topics", t => fuzzy(t.all(), {keys: ["name"], threshold: 0.2}))
|
||||
|
||||
export const searchRelays = watch("relays", t =>
|
||||
fuzzy(t.all(), {keys: ["name", "description", "url"]})
|
||||
|
Loading…
Reference in New Issue
Block a user