Browse Source

moved sorting above deduping since the latter trims

pull/850/head
Stephen Hess 8 years ago
parent
commit
9ec1840594
  1. 2
      routes/v1.js

2
routes/v1.js

@ -141,6 +141,7 @@ function addRoutes(app, peliasConfig) {
postProc.confidenceScores(peliasConfig.api),
postProc.confidenceScoresFallback(),
postProc.interpolate(),
postProc.sortResponseData(require('pelias-sorting'), hasAdminOnlyResults),
postProc.dedupe(),
postProc.accuracy(),
postProc.localNamingConventions(),
@ -149,7 +150,6 @@ function addRoutes(app, peliasConfig) {
postProc.normalizeParentIds(),
postProc.changeLanguage(),
postProc.assignLabels(),
postProc.sortResponseData(require('pelias-sorting'), hasAdminOnlyResults),
postProc.geocodeJSON(peliasConfig.api, base),
postProc.sendJSON
]),

Loading…
Cancel
Save