Browse Source

Merge pull request #684 from pelias/hardcode-es-hits-to-100

hardcode size to 50 for FallbackQuery
pull/685/head
Stephen K Hess 8 years ago committed by GitHub
parent
commit
6db460f440
  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 // size
if( clean.querySize ) { if( clean.querySize ) {
vs.var( 'size', clean.querySize ); vs.var( 'size', 50 );
} }
// focus point // focus point
@ -137,4 +137,4 @@ function hasStreet(vs) {
return vs.isset('input:street'); 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' 'boost_mode': 'multiply'
} }
}, },
'size': 10, 'size': 50,
'track_scores': true, 'track_scores': true,
'sort': [ 'sort': [
{ {

2
test/unit/fixture/search_linguistic_bbox.js

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

2
test/unit/fixture/search_linguistic_focus.js

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

2
test/unit/fixture/search_linguistic_focus_bbox.js

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

2
test/unit/fixture/search_linguistic_focus_null_island.js

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

2
test/unit/fixture/search_linguistic_only.js

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

2
test/unit/fixture/search_linguistic_viewport.js

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

2
test/unit/fixture/search_linguistic_viewport_min_diagonal.js

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

Loading…
Cancel
Save