mirror of https://github.com/pelias/api.git
Browse Source
(config/queryAdminWeights, query/search).js
-Move the admin-level weights defined in `query/search` into a
config file, addressing
332597c653 (commitcomment-10892650)
.
search-all-admins
Severyn Kozak
10 years ago
2 changed files with 17 additions and 10 deletions
@ -0,0 +1,15 @@
|
||||
/** |
||||
* Configurable weights that influence how, for a query with an admin value |
||||
* present, a match on any given admin value affects a document's overall |
||||
* score. |
||||
*/ |
||||
|
||||
module.exports = { |
||||
admin0: 20, |
||||
alpha3: 20, |
||||
admin1: 10, |
||||
admin1_abbr: 10, |
||||
admin2: 5, |
||||
locality: 1, |
||||
local_admin: 1 |
||||
}; |
Loading…
Reference in new issue