Browse Source

removed hard-coded `size`

effectively reverts https://github.com/pelias/api/pull/684
pull/701/head
Stephen Hess 8 years ago
parent
commit
4dbaff6589
  1. 2
      query/search.js
  2. 2
      test/unit/fixture/search_boundary_country.js
  3. 2
      test/unit/fixture/search_linguistic_bbox.js
  4. 2
      test/unit/fixture/search_linguistic_focus.js
  5. 2
      test/unit/fixture/search_linguistic_focus_bbox.js
  6. 2
      test/unit/fixture/search_linguistic_focus_null_island.js
  7. 2
      test/unit/fixture/search_linguistic_only.js
  8. 2
      test/unit/fixture/search_linguistic_viewport.js
  9. 2
      test/unit/fixture/search_linguistic_viewport_min_diagonal.js

2
query/search.js

@ -59,7 +59,7 @@ function generateQuery( clean ){
// size // size
if( clean.querySize ) { if( clean.querySize ) {
vs.var( 'size', 50 ); vs.var( 'size', clean.querySize );
} }
// focus point // focus point

2
test/unit/fixture/search_boundary_country.js

@ -74,7 +74,7 @@ module.exports = {
'boost_mode': 'multiply' 'boost_mode': 'multiply'
} }
}, },
'size': 50, 'size': 10,
'track_scores': true, 'track_scores': true,
'sort': [ 'sort': [
'_score' '_score'

2
test/unit/fixture/search_linguistic_bbox.js

@ -77,7 +77,7 @@ module.exports = {
'boost_mode': 'multiply' 'boost_mode': 'multiply'
} }
}, },
'size': 50, 'size': 10,
'track_scores': true, 'track_scores': true,
'sort': [ 'sort': [
'_score' '_score'

2
test/unit/fixture/search_linguistic_focus.js

@ -80,7 +80,7 @@ module.exports = {
'boost_mode': 'multiply' 'boost_mode': 'multiply'
} }
}, },
'size': 50, 'size': 10,
'track_scores': true, 'track_scores': true,
'sort': [ 'sort': [
'_score' '_score'

2
test/unit/fixture/search_linguistic_focus_bbox.js

@ -91,7 +91,7 @@ module.exports = {
'boost_mode': 'multiply' 'boost_mode': 'multiply'
} }
}, },
'size': 50, 'size': 10,
'track_scores': true, 'track_scores': true,
'sort': [ 'sort': [
'_score' '_score'

2
test/unit/fixture/search_linguistic_focus_null_island.js

@ -80,7 +80,7 @@ module.exports = {
'boost_mode': 'multiply' 'boost_mode': 'multiply'
} }
}, },
'size': 50, 'size': 10,
'track_scores': true, 'track_scores': true,
'sort': [ 'sort': [
'_score' '_score'

2
test/unit/fixture/search_linguistic_only.js

@ -66,7 +66,7 @@ module.exports = {
'boost_mode': 'multiply' 'boost_mode': 'multiply'
} }
}, },
'size': 50, 'size': 10,
'track_scores': true, 'track_scores': true,
'sort': [ 'sort': [
'_score' '_score'

2
test/unit/fixture/search_linguistic_viewport.js

@ -66,7 +66,7 @@ module.exports = {
'boost_mode': 'multiply' 'boost_mode': 'multiply'
} }
}, },
'size': 50, 'size': 10,
'track_scores': true, 'track_scores': true,
'sort': [ 'sort': [
'_score' '_score'

2
test/unit/fixture/search_linguistic_viewport_min_diagonal.js

@ -66,7 +66,7 @@ module.exports = {
'boost_mode': 'multiply' 'boost_mode': 'multiply'
} }
}, },
'size': 50, 'size': 10,
'track_scores': true, 'track_scores': true,
'sort': [ 'sort': [
'_score' '_score'

Loading…
Cancel
Save