Searchkick::InvalidQueryError in Searches::LocationsController#index

[400] {"error":{"root_cause":[{"type":"parse_exception","reason":"latitude must be a number"}],"type":"search_phase_execution_exception","reason":"all shards failed","phase":"query","grouped":true,"failed_shards":[{"shard":0,"index":"production_cities_production_20200610193610929","node":"q0RW2Qu4QkqfT0gflnapnQ","reason":{"type":"parse_exception","reason":"latitude must be a number"}}]},"status":400}

Extracted source (around line #34):
32
33
34
35
36
37
              
def nearest
City.search('*', {
where: {
name: { not: [ self.name, 'Paris' ] }, # paris not included due to arrondissments
},

Rails.root: /var/www/therapeutes.com/releases/20240326114116

Application Trace | Framework Trace | Full Trace

Request

Parameters:

{"profession_id"=>"therapeutes",
 "id"=>"entrains-sur-nohain"}

Response

Headers:

None