Browse Source

Merge branch 'autocomplete_increase_slop' of github.com:pelias/api into missinglink

pull/529/head
missinglink 9 years ago
parent
commit
30db744b87
  1. 2
      query/autocomplete_defaults.js
  2. 2
      test/unit/fixture/autocomplete_linguistic_multiple_tokens.js
  3. 2
      test/unit/fixture/autocomplete_linguistic_with_admin.js

2
query/autocomplete_defaults.js

@ -27,7 +27,7 @@ module.exports = _.merge({}, peliasQuery.defaults, {
'phrase:analyzer': 'peliasQueryFullToken',
'phrase:field': 'name.default',
'phrase:boost': 1,
'phrase:slop': 2,
'phrase:slop': 3,
'focus:function': 'linear',
'focus:offset': '0km',

2
test/unit/fixture/autocomplete_linguistic_multiple_tokens.js

@ -10,7 +10,7 @@ module.exports = {
'analyzer': 'peliasQueryFullToken',
'type': 'phrase',
'boost': 1,
'slop': 2,
'slop': 3,
'query': 'one two'
}
}

2
test/unit/fixture/autocomplete_linguistic_with_admin.js

@ -11,7 +11,7 @@ module.exports = {
'analyzer': 'peliasQueryFullToken',
'type': 'phrase',
'boost': 1,
'slop': 2,
'slop': 3,
'query': 'one two'
}
}

Loading…
Cancel
Save