Browse Source

Set ES query minimum size to 2 for /v1/reverse

pull/1097/head
Julian Simioni 7 years ago
parent
commit
07dd704e1d
No known key found for this signature in database
GPG Key ID: B9EEB0C6EE0910A1
  1. 2
      routes/v1.js

2
routes/v1.js

@ -344,7 +344,7 @@ function addRoutes(app, peliasConfig) {
reverse: createRouter([ reverse: createRouter([
sanitizers.reverse.middleware, sanitizers.reverse.middleware,
middleware.requestLanguage, middleware.requestLanguage,
middleware.calcSize(), middleware.calcSize(2),
controllers.search(peliasConfig.api, esclient, queries.reverse, nonCoarseReverseShouldExecute), controllers.search(peliasConfig.api, esclient, queries.reverse, nonCoarseReverseShouldExecute),
controllers.coarse_reverse(pipService, coarseReverseShouldExecute), controllers.coarse_reverse(pipService, coarseReverseShouldExecute),
postProc.distances('point.'), postProc.distances('point.'),

Loading…
Cancel
Save