Browse Source

updated fixtures for latest query

pull/625/head
Stephen Hess 8 years ago
parent
commit
24d81b754f
  1. 2
      package.json
  2. 21
      test/unit/fixture/search_boundary_country.js
  3. 21
      test/unit/fixture/search_linguistic_bbox.js
  4. 21
      test/unit/fixture/search_linguistic_focus.js
  5. 21
      test/unit/fixture/search_linguistic_focus_bbox.js
  6. 21
      test/unit/fixture/search_linguistic_focus_null_island.js
  7. 21
      test/unit/fixture/search_linguistic_only.js
  8. 21
      test/unit/fixture/search_linguistic_viewport.js
  9. 21
      test/unit/fixture/search_linguistic_viewport_min_diagonal.js
  10. 21
      test/unit/fixture/search_with_category_filtering.js
  11. 21
      test/unit/fixture/search_with_source_filtering.js

2
package.json

@ -55,7 +55,7 @@
"pelias-config": "2.1.0",
"pelias-logger": "0.0.8",
"pelias-model": "4.2.0",
"pelias-query": "pelias/query#reorganize-queries-for-scoring",
"pelias-query": "8.6.0",
"pelias-text-analyzer": "1.3.0",
"stats-lite": "2.0.3",
"through2": "2.0.1"

21
test/unit/fixture/search_boundary_country.js

@ -5,7 +5,26 @@ module.exports = {
'filtered': {
'query': {
'bool': {
'should': []
'should': [
{
'bool': {
'_name': 'fallback.street',
'must': [
{
'match_phrase': {
'address_parts.street': 'street value'
}
}
],
'should': [],
'filter': {
'term': {
'layer': 'street'
}
}
}
}
]
}
},
'filter': {

21
test/unit/fixture/search_linguistic_bbox.js

@ -5,7 +5,26 @@ module.exports = {
'filtered': {
'query': {
'bool': {
'should': []
'should': [
{
'bool': {
'_name': 'fallback.street',
'must': [
{
'match_phrase': {
'address_parts.street': 'street value'
}
}
],
'should': [],
'filter': {
'term': {
'layer': 'street'
}
}
}
}
]
}
},
'filter': {

21
test/unit/fixture/search_linguistic_focus.js

@ -5,7 +5,26 @@ module.exports = {
'filtered': {
'query': {
'bool': {
'should': []
'should': [
{
'bool': {
'_name': 'fallback.street',
'must': [
{
'match_phrase': {
'address_parts.street': 'street value'
}
}
],
'should': [],
'filter': {
'term': {
'layer': 'street'
}
}
}
}
]
}
},
'filter': {

21
test/unit/fixture/search_linguistic_focus_bbox.js

@ -5,7 +5,26 @@ module.exports = {
'filtered': {
'query': {
'bool': {
'should': []
'should': [
{
'bool': {
'_name': 'fallback.street',
'must': [
{
'match_phrase': {
'address_parts.street': 'street value'
}
}
],
'should': [],
'filter': {
'term': {
'layer': 'street'
}
}
}
}
]
}
},
'filter': {

21
test/unit/fixture/search_linguistic_focus_null_island.js

@ -5,7 +5,26 @@ module.exports = {
'filtered': {
'query': {
'bool': {
'should': []
'should': [
{
'bool': {
'_name': 'fallback.street',
'must': [
{
'match_phrase': {
'address_parts.street': 'street value'
}
}
],
'should': [],
'filter': {
'term': {
'layer': 'street'
}
}
}
}
]
}
},
'filter': {

21
test/unit/fixture/search_linguistic_only.js

@ -5,7 +5,26 @@ module.exports = {
'filtered': {
'query': {
'bool': {
'should': []
'should': [
{
'bool': {
'_name': 'fallback.street',
'must': [
{
'match_phrase': {
'address_parts.street': 'street value'
}
}
],
'should': [],
'filter': {
'term': {
'layer': 'street'
}
}
}
}
]
}
},
'filter': {

21
test/unit/fixture/search_linguistic_viewport.js

@ -5,7 +5,26 @@ module.exports = {
'filtered': {
'query': {
'bool': {
'should': []
'should': [
{
'bool': {
'_name': 'fallback.street',
'must': [
{
'match_phrase': {
'address_parts.street': 'street value'
}
}
],
'should': [],
'filter': {
'term': {
'layer': 'street'
}
}
}
}
]
}
},
'filter': {

21
test/unit/fixture/search_linguistic_viewport_min_diagonal.js

@ -5,7 +5,26 @@ module.exports = {
'filtered': {
'query': {
'bool': {
'should': []
'should': [
{
'bool': {
'_name': 'fallback.street',
'must': [
{
'match_phrase': {
'address_parts.street': 'street value'
}
}
],
'should': [],
'filter': {
'term': {
'layer': 'street'
}
}
}
}
]
}
},
'filter': {

21
test/unit/fixture/search_with_category_filtering.js

@ -5,7 +5,26 @@ module.exports = {
'filtered': {
'query': {
'bool': {
'should': []
'should': [
{
'bool': {
'_name': 'fallback.street',
'must': [
{
'match_phrase': {
'address_parts.street': 'street value'
}
}
],
'should': [],
'filter': {
'term': {
'layer': 'street'
}
}
}
}
]
}
},
'filter': {

21
test/unit/fixture/search_with_source_filtering.js

@ -5,7 +5,26 @@ module.exports = {
'filtered': {
'query': {
'bool': {
'should': []
'should': [
{
'bool': {
'_name': 'fallback.street',
'must': [
{
'match_phrase': {
'address_parts.street': 'street value'
}
}
],
'should': [],
'filter': {
'term': {
'layer': 'street'
}
}
}
}
]
}
},
'filter': {

Loading…
Cancel
Save