Browse Source

Fixed broken test due to rebase with changes from master.

pull/546/head
Diana Shkolnikov 9 years ago
parent
commit
b0aab1afd3
  1. 23
      test/unit/fixture/search_with_category_filtering.js

23
test/unit/fixture/search_with_category_filtering.js

@ -1,7 +1,4 @@
module.exports = { module.exports = {
'query': {
'filtered': {
'query': { 'query': {
'bool': { 'bool': {
'must': [{ 'must': [{
@ -9,7 +6,7 @@ module.exports = {
'name.default': { 'name.default': {
'query': 'test', 'query': 'test',
'boost': 1, 'boost': 1,
'analyzer': 'peliasIndexOneEdgeGram' 'analyzer': 'peliasQueryFullToken'
} }
} }
}], }],
@ -73,21 +70,17 @@ module.exports = {
'weight': 2 'weight': 2
}] }]
} }
}] }],
} 'filter': [{
},
'filter': {
'bool': {
'must': [{
'terms': { 'terms': {
'category': ['retail','food'] 'category': ['retail', 'food']
} }
}] }]
} }
}
}
}, },
'sort': [ '_score' ],
'size': 20, 'size': 20,
'track_scores': true 'track_scores': true,
'sort': [
'_score'
]
}; };

Loading…
Cancel
Save