Browse Source

feat: Merge pull request #844 from pelias/greenkeeper/pelias-query-8.16.0

Update pelias-query to the latest version 🚀
pull/846/head v3.22.0
Julian Simioni 8 years ago committed by GitHub
parent
commit
1edb481893
  1. 2
      package.json
  2. 6
      test/unit/fixture/search_boundary_country.js
  3. 9
      test/unit/fixture/search_fallback.js
  4. 9
      test/unit/fixture/search_fallback_postalcode_only.js
  5. 6
      test/unit/fixture/search_linguistic_bbox.js
  6. 6
      test/unit/fixture/search_linguistic_focus.js
  7. 6
      test/unit/fixture/search_linguistic_focus_bbox.js
  8. 6
      test/unit/fixture/search_linguistic_focus_null_island.js
  9. 6
      test/unit/fixture/search_linguistic_only.js
  10. 6
      test/unit/fixture/search_linguistic_viewport.js
  11. 6
      test/unit/fixture/search_linguistic_viewport_min_diagonal.js
  12. 6
      test/unit/fixture/search_with_category_filtering.js
  13. 6
      test/unit/fixture/search_with_source_filtering.js
  14. 6
      test/unit/fixture/structured_geocoding/boundary_country.json
  15. 9
      test/unit/fixture/structured_geocoding/fallback.json
  16. 6
      test/unit/fixture/structured_geocoding/linguistic_bbox.json
  17. 6
      test/unit/fixture/structured_geocoding/linguistic_focus.json
  18. 6
      test/unit/fixture/structured_geocoding/linguistic_focus_bbox.json
  19. 6
      test/unit/fixture/structured_geocoding/linguistic_focus_null_island.json
  20. 6
      test/unit/fixture/structured_geocoding/linguistic_only.json
  21. 6
      test/unit/fixture/structured_geocoding/linguistic_viewport.json
  22. 6
      test/unit/fixture/structured_geocoding/linguistic_viewport_min_diagonal.json
  23. 9
      test/unit/fixture/structured_geocoding/postalcode_only.js
  24. 7
      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-mock-logger": "^1.0.1", "pelias-mock-logger": "^1.0.1",
"pelias-model": "4.6.0", "pelias-model": "4.6.0",
"pelias-query": "8.15.0", "pelias-query": "8.16.0",
"pelias-text-analyzer": "1.7.3", "pelias-text-analyzer": "1.7.3",
"predicates": "^1.0.1", "predicates": "^1.0.1",
"retry": "^0.10.1", "retry": "^0.10.1",

6
test/unit/fixture/search_boundary_country.js

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

9
test/unit/fixture/search_fallback.js

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

9
test/unit/fixture/search_fallback_postalcode_only.js

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

6
test/unit/fixture/search_linguistic_bbox.js

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

6
test/unit/fixture/search_linguistic_focus.js

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

6
test/unit/fixture/search_linguistic_focus_bbox.js

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

6
test/unit/fixture/search_linguistic_focus_null_island.js

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

6
test/unit/fixture/search_linguistic_only.js

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

6
test/unit/fixture/search_linguistic_viewport.js

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

6
test/unit/fixture/search_linguistic_viewport_min_diagonal.js

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

6
test/unit/fixture/search_with_category_filtering.js

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

6
test/unit/fixture/search_with_source_filtering.js

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save