Browse Source

adjust balance between population/popularity and focus

pull/338/head
Peter Johnson 9 years ago
parent
commit
2ce249ad30
  1. 2
      package.json
  2. 1
      query/defaults.js
  3. 3
      test/unit/fixture/autocomplete_linguistic_focus.js
  4. 3
      test/unit/fixture/autocomplete_linguistic_focus_null_island.js
  5. 3
      test/unit/fixture/search_linguistic_focus.js
  6. 3
      test/unit/fixture/search_linguistic_focus_bbox.js
  7. 3
      test/unit/fixture/search_linguistic_focus_null_island.js

2
package.json

@ -51,7 +51,7 @@
"pelias-config": "^1.0.1", "pelias-config": "^1.0.1",
"pelias-esclient": "0.0.25", "pelias-esclient": "0.0.25",
"pelias-logger": "^0.0.8", "pelias-logger": "^0.0.8",
"pelias-query": "4.0.0", "pelias-query": "^5.0.0",
"pelias-schema": "1.0.0", "pelias-schema": "1.0.0",
"pelias-suggester-pipeline": "2.0.2", "pelias-suggester-pipeline": "2.0.2",
"stats-lite": "^1.0.3", "stats-lite": "^1.0.3",

1
query/defaults.js

@ -33,6 +33,7 @@ module.exports = extend( false, peliasQuery.defaults, {
'focus:offset': '1km', 'focus:offset': '1km',
'focus:scale': '50km', 'focus:scale': '50km',
'focus:decay': 0.5, 'focus:decay': 0.5,
'focus:weight': 2,
'function_score:score_mode': 'avg', 'function_score:score_mode': 'avg',
'function_score:boost_mode': 'replace', 'function_score:boost_mode': 'replace',

3
test/unit/fixture/autocomplete_linguistic_focus.js

@ -45,7 +45,8 @@ module.exports = {
'scale': '50km', 'scale': '50km',
'decay': 0.5 'decay': 0.5
} }
} },
'weight': 2
}], }],
'score_mode': 'avg', 'score_mode': 'avg',
'boost_mode': 'replace' 'boost_mode': 'replace'

3
test/unit/fixture/autocomplete_linguistic_focus_null_island.js

@ -45,7 +45,8 @@ module.exports = {
'scale': '50km', 'scale': '50km',
'decay': 0.5 'decay': 0.5
} }
} },
'weight': 2
}], }],
'score_mode': 'avg', 'score_mode': 'avg',
'boost_mode': 'replace' 'boost_mode': 'replace'

3
test/unit/fixture/search_linguistic_focus.js

@ -47,7 +47,8 @@ module.exports = {
'scale': '50km', 'scale': '50km',
'decay': 0.5 'decay': 0.5
} }
} },
'weight': 2
}], }],
'score_mode': 'avg', 'score_mode': 'avg',
'boost_mode': 'replace' 'boost_mode': 'replace'

3
test/unit/fixture/search_linguistic_focus_bbox.js

@ -47,7 +47,8 @@ module.exports = {
'scale': '50km', 'scale': '50km',
'decay': 0.5 'decay': 0.5
} }
} },
'weight': 2
}], }],
'score_mode': 'avg', 'score_mode': 'avg',
'boost_mode': 'replace' 'boost_mode': 'replace'

3
test/unit/fixture/search_linguistic_focus_null_island.js

@ -47,7 +47,8 @@ module.exports = {
'scale': '50km', 'scale': '50km',
'decay': 0.5 'decay': 0.5
} }
} },
'weight': 2
}], }],
'score_mode': 'avg', 'score_mode': 'avg',
'boost_mode': 'replace' 'boost_mode': 'replace'

Loading…
Cancel
Save