You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Am performing a query with a geo-precision search in the sort_by clause, and when the search is completed, I get the following error: json: cannot unmarshal number 421.0 into Go struct field SearchResultHit.results.hits.geo_distance_meters of type int
Steps to reproduce
Make a collection, and include a geoPoint field
My example search is below
Collection: campus
Query: *
Query-By: name
Filter: coordinates:(34.05000000,-118.44000000,50.00000000 mi), where coordinates is the geopoint field
Description
sort_by
clause, and when the search is completed, I get the following error: json: cannot unmarshal number 421.0 into Go struct field SearchResultHit.results.hits.geo_distance_meters of type intSteps to reproduce
Make a collection, and include a geoPoint field
My example search is below
campus
*
name
coordinates:(34.05000000,-118.44000000,50.00000000 mi)
, wherecoordinates
is the geopoint fieldcoordinates(34.05000, -118.44000, precision: 5mi):asc, dateCreated:desc
1
5
Was able to replicate this on both single search and multi search
Expected Behavior
Would expect it to return an int OR have the object be a float
Actual Behavior
Is actually returning a float where an int is expected
Metadata
Typesense Version: typesense v27.1
Go Version: 1.21.5
The text was updated successfully, but these errors were encountered: