only index _geo if it's set as sortable OR filterable

and only allow the filters if geo was set to filterable
This commit is contained in:
Tamo
2021-08-30 15:47:33 +02:00
parent f73273d71c
commit 5bb175fc90
3 changed files with 15 additions and 1 deletions

View File

@@ -687,6 +687,8 @@ mod tests {
let mut wtxn = index.write_txn().unwrap();
let mut builder = Settings::new(&mut wtxn, &index, 0);
builder.set_primary_key(S("id"));
builder.set_filterable_fields(hashset!(S("_geo")));
builder.set_sortable_fields(hashset!(S("_geo")));
builder.execute(|_, _| ()).unwrap();
let content = &r#"[