Browse Source

Merge pull request #923 from pelias/greenkeeper/pelias-query-8.16.1

fix(package): update pelias-query to version 8.16.1
pull/924/head v3.27.7
Julian Simioni 7 years ago committed by GitHub
parent
commit
2920f617c6
  1. 2
      package.json
  2. 7
      test/unit/fixture/search_boundary_country.js
  3. 10
      test/unit/fixture/search_fallback.js
  4. 10
      test/unit/fixture/search_fallback_postalcode_only.js
  5. 7
      test/unit/fixture/search_linguistic_bbox.js
  6. 7
      test/unit/fixture/search_linguistic_focus.js
  7. 7
      test/unit/fixture/search_linguistic_focus_bbox.js
  8. 7
      test/unit/fixture/search_linguistic_focus_null_island.js
  9. 7
      test/unit/fixture/search_linguistic_only.js
  10. 7
      test/unit/fixture/search_linguistic_viewport.js
  11. 7
      test/unit/fixture/search_linguistic_viewport_min_diagonal.js
  12. 7
      test/unit/fixture/search_with_category_filtering.js
  13. 7
      test/unit/fixture/search_with_source_filtering.js
  14. 7
      test/unit/fixture/structured_geocoding/boundary_country.json
  15. 10
      test/unit/fixture/structured_geocoding/fallback.json
  16. 7
      test/unit/fixture/structured_geocoding/linguistic_bbox.json
  17. 7
      test/unit/fixture/structured_geocoding/linguistic_focus.json
  18. 7
      test/unit/fixture/structured_geocoding/linguistic_focus_bbox.json
  19. 7
      test/unit/fixture/structured_geocoding/linguistic_focus_null_island.json
  20. 7
      test/unit/fixture/structured_geocoding/linguistic_only.json
  21. 7
      test/unit/fixture/structured_geocoding/linguistic_viewport.json
  22. 7
      test/unit/fixture/structured_geocoding/linguistic_viewport_min_diagonal.json
  23. 10
      test/unit/fixture/structured_geocoding/postalcode_only.js
  24. 8
      test/unit/fixture/structured_geocoding/with_source_filtering.json

2
package.json

@ -61,7 +61,7 @@
"pelias-logger": "0.2.0", "pelias-logger": "0.2.0",
"pelias-microservice-wrapper": "1.1.2", "pelias-microservice-wrapper": "1.1.2",
"pelias-model": "4.9.0", "pelias-model": "4.9.0",
"pelias-query": "8.15.0", "pelias-query": "8.16.1",
"pelias-sorting": "1.0.1", "pelias-sorting": "1.0.1",
"pelias-text-analyzer": "1.8.3", "pelias-text-analyzer": "1.8.3",
"predicates": "^1.0.1", "predicates": "^1.0.1",

7
test/unit/fixture/search_boundary_country.js

@ -1,10 +1,9 @@
module.exports = { module.exports = {
'query': { 'query': {
'function_score': { 'function_score': {
'query': {
'filtered': {
'query': { 'query': {
'bool': { 'bool': {
'minimum_should_match': 1,
'should': [ 'should': [
{ {
'bool': { 'bool': {
@ -25,9 +24,7 @@ module.exports = {
} }
} }
} }
] ],
}
},
'filter': { 'filter': {
'bool': { 'bool': {
'must': [ 'must': [

10
test/unit/fixture/search_fallback.js

@ -1,10 +1,9 @@
module.exports = { module.exports = {
'query': { 'query': {
'function_score': { 'function_score': {
'query': {
'filtered': {
'query': { 'query': {
'bool': { 'bool': {
'minimum_should_match': 1,
'should': [ 'should': [
{ {
'bool': { 'bool': {
@ -828,13 +827,6 @@ module.exports = {
] ]
} }
}, },
'filter': {
'bool': {
'must': []
}
}
}
},
'max_boost': 20, 'max_boost': 20,
'functions': [ 'functions': [
{ {

10
test/unit/fixture/search_fallback_postalcode_only.js

@ -1,10 +1,9 @@
module.exports = { module.exports = {
'query': { 'query': {
'function_score': { 'function_score': {
'query': {
'filtered': {
'query': { 'query': {
'bool': { 'bool': {
'minimum_should_match': 1,
'should': [ 'should': [
{ {
'bool': { 'bool': {
@ -30,13 +29,6 @@ module.exports = {
] ]
} }
}, },
'filter': {
'bool': {
'must': []
}
}
}
},
'max_boost': 20, 'max_boost': 20,
'functions': [ 'functions': [
{ {

7
test/unit/fixture/search_linguistic_bbox.js

@ -1,10 +1,9 @@
module.exports = { module.exports = {
'query': { 'query': {
'function_score': { 'function_score': {
'query': {
'filtered': {
'query': { 'query': {
'bool': { 'bool': {
'minimum_should_match': 1,
'should': [ 'should': [
{ {
'bool': { 'bool': {
@ -25,9 +24,7 @@ module.exports = {
} }
} }
} }
] ],
}
},
'filter': { 'filter': {
'bool': { 'bool': {
'must': [ 'must': [

7
test/unit/fixture/search_linguistic_focus.js

@ -1,10 +1,9 @@
module.exports = { module.exports = {
'query': { 'query': {
'function_score': { 'function_score': {
'query': {
'filtered': {
'query': { 'query': {
'bool': { 'bool': {
'minimum_should_match': 1,
'should': [ 'should': [
{ {
'bool': { 'bool': {
@ -25,9 +24,7 @@ module.exports = {
} }
} }
} }
] ],
}
},
'filter': { 'filter': {
'bool': { 'bool': {
'must': [ 'must': [

7
test/unit/fixture/search_linguistic_focus_bbox.js

@ -1,10 +1,9 @@
module.exports = { module.exports = {
'query': { 'query': {
'function_score': { 'function_score': {
'query': {
'filtered': {
'query': { 'query': {
'bool': { 'bool': {
'minimum_should_match': 1,
'should': [ 'should': [
{ {
'bool': { 'bool': {
@ -25,9 +24,7 @@ module.exports = {
} }
} }
} }
] ],
}
},
'filter': { 'filter': {
'bool': { 'bool': {
'must': [ 'must': [

7
test/unit/fixture/search_linguistic_focus_null_island.js

@ -1,10 +1,9 @@
module.exports = { module.exports = {
'query': { 'query': {
'function_score': { 'function_score': {
'query': {
'filtered': {
'query': { 'query': {
'bool': { 'bool': {
'minimum_should_match': 1,
'should': [ 'should': [
{ {
'bool': { 'bool': {
@ -25,9 +24,7 @@ module.exports = {
} }
} }
} }
] ],
}
},
'filter': { 'filter': {
'bool': { 'bool': {
'must': [ 'must': [

7
test/unit/fixture/search_linguistic_only.js

@ -1,10 +1,9 @@
module.exports = { module.exports = {
'query': { 'query': {
'function_score': { 'function_score': {
'query': {
'filtered': {
'query': { 'query': {
'bool': { 'bool': {
'minimum_should_match': 1,
'should': [ 'should': [
{ {
'bool': { 'bool': {
@ -25,9 +24,7 @@ module.exports = {
} }
} }
} }
] ],
}
},
'filter': { 'filter': {
'bool': { 'bool': {
'must': [ 'must': [

7
test/unit/fixture/search_linguistic_viewport.js

@ -1,10 +1,9 @@
module.exports = { module.exports = {
'query': { 'query': {
'function_score': { 'function_score': {
'query': {
'filtered': {
'query': { 'query': {
'bool': { 'bool': {
'minimum_should_match': 1,
'should': [ 'should': [
{ {
'bool': { 'bool': {
@ -25,9 +24,7 @@ module.exports = {
} }
} }
} }
] ],
}
},
'filter': { 'filter': {
'bool': { 'bool': {
'must': [ 'must': [

7
test/unit/fixture/search_linguistic_viewport_min_diagonal.js

@ -1,10 +1,9 @@
module.exports = { module.exports = {
'query': { 'query': {
'function_score': { 'function_score': {
'query': {
'filtered': {
'query': { 'query': {
'bool': { 'bool': {
'minimum_should_match': 1,
'should': [ 'should': [
{ {
'bool': { 'bool': {
@ -25,9 +24,7 @@ module.exports = {
} }
} }
} }
] ],
}
},
'filter': { 'filter': {
'bool': { 'bool': {
'must': [ 'must': [

7
test/unit/fixture/search_with_category_filtering.js

@ -1,10 +1,9 @@
module.exports = { module.exports = {
'query': { 'query': {
'function_score': { 'function_score': {
'query': {
'filtered': {
'query': { 'query': {
'bool': { 'bool': {
'minimum_should_match': 1,
'should': [ 'should': [
{ {
'bool': { 'bool': {
@ -25,9 +24,7 @@ module.exports = {
} }
} }
} }
] ],
}
},
'filter': { 'filter': {
'bool': { 'bool': {
'must': [ 'must': [

7
test/unit/fixture/search_with_source_filtering.js

@ -1,10 +1,9 @@
module.exports = { module.exports = {
'query': { 'query': {
'function_score': { 'function_score': {
'query': {
'filtered': {
'query': { 'query': {
'bool': { 'bool': {
'minimum_should_match': 1,
'should': [ 'should': [
{ {
'bool': { 'bool': {
@ -25,9 +24,7 @@ module.exports = {
} }
} }
} }
] ],
}
},
'filter': { 'filter': {
'bool': { 'bool': {
'must': [ 'must': [

7
test/unit/fixture/structured_geocoding/boundary_country.json

@ -1,13 +1,10 @@
{ {
"query": { "query": {
"function_score": { "function_score": {
"query": {
"filtered": {
"query": { "query": {
"bool": { "bool": {
"should": [] "minimum_should_match": 1,
} "should": [],
},
"filter": { "filter": {
"bool": { "bool": {
"must": [ "must": [

10
test/unit/fixture/structured_geocoding/fallback.json

@ -1,10 +1,9 @@
{ {
"query": { "query": {
"function_score": { "function_score": {
"query": {
"filtered": {
"query": { "query": {
"bool": { "bool": {
"minimum_should_match": 1,
"should": [ "should": [
{ {
"bool": { "bool": {
@ -829,13 +828,6 @@
] ]
} }
}, },
"filter": {
"bool": {
"must": []
}
}
}
},
"max_boost": 20, "max_boost": 20,
"functions": [ "functions": [
{ {

7
test/unit/fixture/structured_geocoding/linguistic_bbox.json

@ -1,13 +1,10 @@
{ {
"query": { "query": {
"function_score": { "function_score": {
"query": {
"filtered": {
"query": { "query": {
"bool": { "bool": {
"should": [] "minimum_should_match": 1,
} "should": [],
},
"filter": { "filter": {
"bool": { "bool": {
"must": [ "must": [

7
test/unit/fixture/structured_geocoding/linguistic_focus.json

@ -1,13 +1,10 @@
{ {
"query": { "query": {
"function_score": { "function_score": {
"query": {
"filtered": {
"query": { "query": {
"bool": { "bool": {
"should": [] "minimum_should_match": 1,
} "should": [],
},
"filter": { "filter": {
"bool": { "bool": {
"must": [ "must": [

7
test/unit/fixture/structured_geocoding/linguistic_focus_bbox.json

@ -1,13 +1,10 @@
{ {
"query": { "query": {
"function_score": { "function_score": {
"query": {
"filtered": {
"query": { "query": {
"bool": { "bool": {
"should": [] "minimum_should_match": 1,
} "should": [],
},
"filter": { "filter": {
"bool": { "bool": {
"must": [ "must": [

7
test/unit/fixture/structured_geocoding/linguistic_focus_null_island.json

@ -1,13 +1,10 @@
{ {
"query": { "query": {
"function_score": { "function_score": {
"query": {
"filtered": {
"query": { "query": {
"bool": { "bool": {
"should": [] "minimum_should_match": 1,
} "should": [],
},
"filter": { "filter": {
"bool": { "bool": {
"must": [ "must": [

7
test/unit/fixture/structured_geocoding/linguistic_only.json

@ -1,13 +1,10 @@
{ {
"query": { "query": {
"function_score": { "function_score": {
"query": {
"filtered": {
"query": { "query": {
"bool": { "bool": {
"should": [] "minimum_should_match": 1,
} "should": [],
},
"filter": { "filter": {
"bool": { "bool": {
"must": [ "must": [

7
test/unit/fixture/structured_geocoding/linguistic_viewport.json

@ -1,13 +1,10 @@
{ {
"query": { "query": {
"function_score": { "function_score": {
"query": {
"filtered": {
"query": { "query": {
"bool": { "bool": {
"should": [] "minimum_should_match": 1,
} "should": [],
},
"filter": { "filter": {
"bool": { "bool": {
"must": [ "must": [

7
test/unit/fixture/structured_geocoding/linguistic_viewport_min_diagonal.json

@ -1,13 +1,10 @@
{ {
"query": { "query": {
"function_score": { "function_score": {
"query": {
"filtered": {
"query": { "query": {
"bool": { "bool": {
"should": [] "minimum_should_match": 1,
} "should": [],
},
"filter": { "filter": {
"bool": { "bool": {
"must": [ "must": [

10
test/unit/fixture/structured_geocoding/postalcode_only.js

@ -1,10 +1,9 @@
module.exports = { module.exports = {
'query': { 'query': {
'function_score': { 'function_score': {
'query': {
'filtered': {
'query': { 'query': {
'bool': { 'bool': {
'minimum_should_match': 1,
'should': [ 'should': [
{ {
'bool': { 'bool': {
@ -30,13 +29,6 @@ module.exports = {
] ]
} }
}, },
'filter': {
'bool': {
'must': []
}
}
}
},
'max_boost': 20, 'max_boost': 20,
'functions': [ 'functions': [
{ {

8
test/unit/fixture/structured_geocoding/with_source_filtering.json

@ -1,13 +1,11 @@
{ {
"query": { "query": {
"function_score": { "function_score": {
"query": {
"filtered": {
"query": { "query": {
"bool": { "bool": {
"should": [] "minimum_should_match": 1,
} "should": [
}, ],
"filter": { "filter": {
"bool": { "bool": {
"must": [ "must": [

Loading…
Cancel
Save