Browse Source

Fixed broken test due to rebase with changes from master.

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

21
test/unit/fixture/search_with_category_filtering.js

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

Loading…
Cancel
Save