better fuzzy searching

This commit is contained in:
kepler155c@gmail.com
2020-05-19 17:06:30 -06:00
parent 3d5f665b59
commit 2c27787f27
11 changed files with 2331 additions and 46 deletions

View File

@@ -318,7 +318,7 @@ function page:applyFilter()
v.score = fuzzy(v.lname, filter)
if v.score then
if v.count > 0 then
v.score = v.score + 1
v.score = v.score + .2
end
table.insert(r, v)
end

View File

@@ -390,7 +390,7 @@ function page:applyFilter()
v.score = fuzzy(v.lname, filter)
if v.score then
if v.count > 0 then
v.score = v.score + 1
v.score = v.score + .2
end
table.insert(r, v)
end