Alan Chen
04/01/2025, 12:30 AMgeolocations
geopoint[]
Problem: When searching for job postings that are within a bounding box for Canada, it does NOT contain results of job postings that only have geolocations
in Toronto; this does not make sense, as Toronto is a city contained in Canada.
• Canada bounding box used in search: geolocations:(83.13505, -52.619409, 83.13505, -141.002742, 41.729668, -141.002742, 41.729668, -52.619409)
• Toronto bounding box used in search: geolocations:(43.855457, -79.115243, 43.855457, -79.639265, 43.580996, -79.639265, 43.580996, -79.115243)
• Example Toronto geopoint that is returned in Toronto query but NOT in Canada query: [ "43.653226", "-79.3831843" ]
• Example Vancouver geopoint that is returned in Canada query: [ "49.2827291", "-123.1207375" ]
Debugging Results:
• The Toronto and Canada bounding boxes seem to be correct (I've included the bounding boxes as GeoJSON and visualized using bboxfinder.com)
• Doesn't seem to be a 180th meridian issue
Steps for reproducing
1. Create new Typesense collection using the attached documents.jsonl
file (contains two locations, one in Vancouver, one in Toronto)
2. Make search using JSON query stored in query.json
3. See that only the Vancouver result is returned