Index the geo points

This commit is contained in:
Irevoire 2021-08-23 18:41:48 +02:00 committed by Tamo
parent 8d9c2c4425
commit 44d6b6ae9e
No known key found for this signature in database
GPG key ID: 20CD8020AFA88D69
5 changed files with 84 additions and 4 deletions

View file

@ -233,6 +233,8 @@ impl<'t, 'u, 'i, 'a> IndexDocuments<'t, 'u, 'i, 'a> {
self.index.searchable_fields_ids(self.wtxn)?.map(HashSet::from_iter);
// get filterable fields for facet databases
let faceted_fields = self.index.faceted_fields_ids(self.wtxn)?;
// get the fid of the `_geo` field.
let geo_field_id = self.index.fields_ids_map(self.wtxn)?.id("_geo");
let stop_words = self.index.stop_words(self.wtxn)?;
// let stop_words = stop_words.as_ref();
@ -261,6 +263,7 @@ impl<'t, 'u, 'i, 'a> IndexDocuments<'t, 'u, 'i, 'a> {
lmdb_writer_sx.clone(),
searchable_fields,
faceted_fields,
geo_field_id,
stop_words,
)
});