From 1f4a29bb0de8c1f5387b4158e03a0bbd79476938 Mon Sep 17 00:00:00 2001 From: Stephen Hess Date: Thu, 6 Jul 2017 15:46:59 -0400 Subject: [PATCH] removed unused variable --- query/search.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/query/search.js b/query/search.js index fcf0b623..3b368f50 100644 --- a/query/search.js +++ b/query/search.js @@ -10,16 +10,11 @@ const logger = require('pelias-logger').get('api'); // general-purpose search query //------------------------------ var fallbackQuery = new peliasQuery.layout.FallbackQuery(); -var geodisambiguationQuery = new peliasQuery.layout.GeodisambiguationQuery(); // scoring boost fallbackQuery.score( peliasQuery.view.focus_only_function( peliasQuery.view.phrase ) ); fallbackQuery.score( peliasQuery.view.popularity_only_function ); fallbackQuery.score( peliasQuery.view.population_only_function ); - -geodisambiguationQuery.score( peliasQuery.view.focus_only_function( peliasQuery.view.phrase ) ); -geodisambiguationQuery.score( peliasQuery.view.popularity_only_function ); -geodisambiguationQuery.score( peliasQuery.view.population_only_function ); // -------------------------------- // non-scoring hard filters @@ -29,13 +24,6 @@ fallbackQuery.filter( peliasQuery.view.boundary_rect ); fallbackQuery.filter( peliasQuery.view.sources ); fallbackQuery.filter( peliasQuery.view.layers ); fallbackQuery.filter( peliasQuery.view.categories ); - -geodisambiguationQuery.filter( peliasQuery.view.boundary_country ); -geodisambiguationQuery.filter( peliasQuery.view.boundary_circle ); -geodisambiguationQuery.filter( peliasQuery.view.boundary_rect ); -geodisambiguationQuery.filter( peliasQuery.view.sources ); -geodisambiguationQuery.filter( peliasQuery.view.layers ); -geodisambiguationQuery.filter( peliasQuery.view.categories ); // -------------------------------- /**