api
api copied to clipboard
Full text queries vs ID based filters
I was wondering why, among the queries that are parsed by libpostal and placeholder, only address layered queries uses an ID based filter, while a venue layered, or admin parts with postalcode queries does not use such a filter, and only does a full text query to ElasticSearch?
For example: Waltham Forest, London, Greater London, England, E10 5NX, Reino Unido
. With your debug log the Elasticsearch query shows it skipped using placeholder IDs as filters and did a full text request rather
Ideally for this, elasticsearch could just be queried for postalcode with a filter on borough with id 1158857287