diff --git a/query/search.js b/query/search.js index 708d89c6..8e34b404 100644 --- a/query/search.js +++ b/query/search.js @@ -110,7 +110,7 @@ function generate( params ){ // note: this is required for shingle/phrase matching query.query.filtered.query.bool.should.push({ 'match': { - 'phrase.default': params.input + 'phrase.default': input } }); diff --git a/test/unit/query/search.js b/test/unit/query/search.js index 2414f80e..dcc9d745 100644 --- a/test/unit/query/search.js +++ b/test/unit/query/search.js @@ -292,7 +292,7 @@ module.exports.tests.query = function(test, common) { }, { 'match': { - 'phrase.default': address + 'phrase.default': '123 main st' } } ] @@ -441,7 +441,7 @@ module.exports.tests.query = function(test, common) { }, { 'match': { - 'phrase.default': partial_address + 'phrase.default': 'soho grand' } } ]