api icon indicating copy to clipboard operation
api copied to clipboard

Full text queries vs ID based filters

Open rcarroll0452 opened this issue 4 years ago • 0 comments

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

rcarroll0452 avatar Jan 20 '20 09:01 rcarroll0452