mirror of https://github.com/pelias/api.git
Browse Source
By definition, all boundary.country query matches will either be identical, or not a match. Thus, it does not make sense to put the query clause for boundary.country in the `must` section of the query. In theory, because our queries would generally combine this `must` clause with others, there shouldn't be any performance improvement (or regression) from this change. However, semantically, this clause fits better as a `filter`, and in the case of a bug causing a degenerate query with the `boundary.country` query clause as the only one under the `must` section, this would have a big impact.pull/1212/head
Julian Simioni
6 years ago
6 changed files with 22 additions and 20 deletions
Loading…
Reference in new issue