Browse Source

match the whole query with phrase.default

pull/169/head
Harish Krishna 9 years ago
parent
commit
1c763eeb75
  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
query.query.filtered.query.bool.should.push({
'match': {
'phrase.default': input
'phrase.default': params.input
}
});

4
test/unit/query/search.js

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

Loading…
Cancel
Save