mirror of https://github.com/pelias/api.git
Browse Source
This is a followup PR to https://github.com/pelias/api/pull/1171 and https://github.com/pelias/api/pull/1170. Apparently we have two different `text` sanitizers, and autocomplete queries were treating a single space as valid input. This had a particularly bad outcome as it would end up generating queries (see an [example](https://gist.github.com/orangejulius/2cc26c7eed39311b6eaf1fb0175c13e6)) that had no main query clause. This caused them to match basically every document in the index. Looking at the geocode.earth slowlog, these queries took **__8 seconds per shard__**.pull/1211/head
Julian Simioni
6 years ago
2 changed files with 20 additions and 2 deletions
Loading…
Reference in new issue