Improve results a bit
This commit is contained in:
parent
6351ebb7e5
commit
97c18f420e
1 changed files with 6 additions and 2 deletions
|
@ -926,8 +926,12 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
lev += lev_add;
|
lev += lev_add;
|
||||||
if (searchWords[j].startsWith(val)) {
|
if (lev > 0 && val.length > 3 && searchWords[j].startsWith(val)) {
|
||||||
lev -= 1;
|
if (val.length < 6) {
|
||||||
|
lev -= 1;
|
||||||
|
} else {
|
||||||
|
lev = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (in_args <= MAX_LEV_DISTANCE) {
|
if (in_args <= MAX_LEV_DISTANCE) {
|
||||||
if (results_in_args[fullId] === undefined) {
|
if (results_in_args[fullId] === undefined) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue