Browse Source

Revert "match the whole query with phrase.default"

This reverts commit 1c763eeb75.
pull/169/head
Harish Krishna 10 years ago
parent
commit
b3d958fe5a
  1. 2
      query/search.js
  2. 4
      test/unit/query/search.js

2
query/search.js

@ -110,7 +110,7 @@ function generate( params ){
// note: this is required for shingle/phrase matching // note: this is required for shingle/phrase matching
query.query.filtered.query.bool.should.push({ query.query.filtered.query.bool.should.push({
'match': { 'match': {
'phrase.default': params.input 'phrase.default': input
} }
}); });

4
test/unit/query/search.js

@ -292,7 +292,7 @@ module.exports.tests.query = function(test, common) {
}, },
{ {
'match': { 'match': {
'phrase.default': address 'phrase.default': '123 main st'
} }
} }
] ]
@ -441,7 +441,7 @@ module.exports.tests.query = function(test, common) {
}, },
{ {
'match': { 'match': {
'phrase.default': partial_address 'phrase.default': 'soho grand'
} }
} }
] ]

Loading…
Cancel
Save