Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Commit

Permalink
Fixes error message when lat/lng are unparseable
Browse files Browse the repository at this point in the history
  • Loading branch information
ahlner committed Jan 18, 2023
1 parent 4971870 commit 0e1ae75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion milli/src/update/index_documents/enrich.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ pub fn enrich_documents_batch<R: Read + Seek>(
// If the settings specifies that a _geo field must be used therefore we must check the
// validity of it in all the documents of this batch and this is when we return `Some`.
let geo_field_id = match documents_batch_index.id("_geo") {
Some(geo_field_id) if index.sortable_fields(rtxn)?.contains("_geo") => Some(geo_field_id),
Some(geo_field_id) if index.sortable_fields(rtxn)?.contains("_geo" ) || index.filterable_fields(rtxn)?.contains("_geo" ) => Some(geo_field_id),
_otherwise => None,
};

Expand Down

0 comments on commit 0e1ae75

Please sign in to comment.