mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 04:17:10 +02:00
Implements the geo-sort ranking rule
This commit is contained in:
parent
93188b3c88
commit
48f5bb1693
7 changed files with 631 additions and 45 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue