Getting Document Distance without Filters
TLDR TJ asked about getting document distance without filters. Jason suggested using geosort to obtain the distance.
Powered by Struct AI
1
3
3mo
Solved
Jun 26, 2023 (3 months ago)
TJ
TJ
08:19 PMHello, is it possible to get the distance of a document (with geopoint fields) from a location without applying a filter?
Jason
Jason
08:20 PMIf you apply a geosort, you should get the distance from the point you’ve mentioned in the geo sort
TJ
TJ
08:24 PMThanks a lot, Jason. I appreciate the quick response
1
Typesense
Lightning-fast, open source search engine for everyone | Knowledge Base powered by Struct.AI
Indexed 2779 threads (79% resolved)
Similar Threads
Calculating Distance Between User and Search Result Location
Priyank wants to calculate distance between user and search location. Kishore Nallan suggests it can only be done during sorting or client side, but the issue remains unresolved.
4
7mo
Resolving Geo-Distance Issue in Search Query Results
Guillermo and Andrew wanted to know individual distance of results when filtering by geopoint. Kishore Nallan advised checking 'geo_distance_meters' in the search response and ensure 'sort_by' clause is present in the query.
14
15mo
Solved
Filtering Documents by Empty String
Serezha asked if it is possible to filter documents by empty string; Kishore Nallan informed that it is not possible as they do not store references to empty values.
2
7mo
Solved