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

Loading…
Cancel
Save