Implements the geo-sort ranking rule

This commit is contained in:
Loïc Lecrenier 2023-04-13 13:45:34 +02:00
parent 93188b3c88
commit 48f5bb1693
7 changed files with 631 additions and 45 deletions

View file

@ -1,10 +1,12 @@
use std::error::Error;
use std::io::stdin;
use std::path::Path;
use std::time::Instant;
use std::{error::Error, path::Path};
use heed::EnvOpenOptions;
use milli::{
execute_search, DefaultSearchLogger, Index, SearchContext, SearchLogger, TermsMatchingStrategy,
execute_search, DefaultSearchLogger, GeoSortStrategy, Index, SearchContext, SearchLogger,
TermsMatchingStrategy,
};
#[global_allocator]
@ -54,6 +56,7 @@ fn main() -> Result<(), Box<dyn Error>> {
false,
&None,
&None,
GeoSortStrategy::default(),
0,
20,
None,