From b3d958fe5a3d000b0bc1f9747025cf7ae1ed8ef9 Mon Sep 17 00:00:00 2001 From: Harish Krishna Date: Wed, 22 Jul 2015 17:06:12 -0400 Subject: [PATCH] Revert "match the whole query with phrase.default" This reverts commit 1c763eeb7504b79ee412d599ab003b153243bf37. --- query/search.js | 2 +- test/unit/query/search.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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' } } ]