Skip to content

Commit d5c7777

Browse files
committed
Change levenshtein distance from 2 to 1
Try to get it for now to not return way too many things for short or common words
1 parent a972217 commit d5c7777

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

template/search_template.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ $(function(){
8989

9090
$.extend( $.ui.autocomplete, {
9191
filter: function( array, term ) {
92-
var OK_distance = 2;
92+
var OK_distance = 1;
9393
return $.grep( array, function( value ) {
9494
var lookup = value.value;
9595
if (lookup.length > term.length) {

0 commit comments

Comments
 (0)