Enforce search typed queries
This commit is contained in:
parent
451e98e7b0
commit
7b62d28cf2
1 changed files with 2 additions and 1 deletions
|
|
@ -801,7 +801,8 @@ window.initSearch = function(rawSearchIndex) {
|
|||
results_returned[fullId].lev =
|
||||
Math.min(results_returned[fullId].lev, returned);
|
||||
}
|
||||
if (index !== -1 || lev <= MAX_LEV_DISTANCE) {
|
||||
if (typePassesFilter(typeFilter, ty.ty) &&
|
||||
(index !== -1 || lev <= MAX_LEV_DISTANCE)) {
|
||||
if (index !== -1 && paths.length < 2) {
|
||||
lev = 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue