Browse Source

fix

pull/378/head
Peter Johnson 9 years ago
parent
commit
cf9c56928c
  1. 3
      query/autocomplete.js

3
query/autocomplete.js

@ -19,6 +19,8 @@ var focus = peliasQuery.view.focus( peliasQuery.view.phrase );
var _tmpview = function( vs ){
var view = focus( vs );
if( view && view.hasOwnProperty('function_score') ){
view.function_score.filter = {
'or': [
{ 'type': { 'value': 'osmnode' } },
@ -28,6 +30,7 @@ var _tmpview = function( vs ){
{ 'type': { 'value': 'geoname' } },
]
};
}
// console.log( JSON.stringify( view, null, 2 ) );
return view;

Loading…
Cancel
Save