Browse Source

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

wip-improve-reverse
Julian Simioni 7 years ago
parent
commit
a6e5228512
No known key found for this signature in database
GPG Key ID: B9EEB0C6EE0910A1
  1. 2
      routes/v1.js

2
routes/v1.js

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

Loading…
Cancel
Save