From b862fc88339d5680d1ee82c0cfeb8d8bee5a6c1a Mon Sep 17 00:00:00 2001 From: missinglink Date: Mon, 25 Apr 2016 13:03:16 +0200 Subject: [PATCH] refactor pop_subquery to be config driven --- query/view/pop_subquery.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/query/view/pop_subquery.js b/query/view/pop_subquery.js index bde1492b..d18b9963 100644 --- a/query/view/pop_subquery.js +++ b/query/view/pop_subquery.js @@ -9,7 +9,7 @@ module.exports = function( vs ){ var view = peliasQuery.view.ngrams( vs ); - view.match['name.default'].analyzer = 'peliasQueryFullToken'; + view.match['name.default'].analyzer = vs.var('phrase:analyzer'); delete view.match['name.default'].boost; return view;