Browse Source

hardcode size to 100 for FallbackQuery

pull/684/head
Stephen Hess 8 years ago
parent
commit
b408b96948
  1. 4
      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

4
query/search.js

@ -59,7 +59,7 @@ function generateQuery( clean ){
// size
if( clean.querySize ) {
vs.var( 'size', clean.querySize );
vs.var( 'size', 100 );
}
// focus point
@ -137,4 +137,4 @@ function hasStreet(vs) {
return vs.isset('input:street');
}
module.exports = generateQuery;
module.exports = generateQuery;

2
test/unit/fixture/search_boundary_country.js

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

2
test/unit/fixture/search_linguistic_bbox.js

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

2
test/unit/fixture/search_linguistic_focus.js

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

2
test/unit/fixture/search_linguistic_focus_bbox.js

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

2
test/unit/fixture/search_linguistic_focus_null_island.js

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

2
test/unit/fixture/search_linguistic_only.js

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

2
test/unit/fixture/search_linguistic_viewport.js

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

2
test/unit/fixture/search_linguistic_viewport_min_diagonal.js

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

Loading…
Cancel
Save