mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-30 00:34:26 +01:00
Fix small bug in visual logger of search algo
This commit is contained in:
parent
aa414565bb
commit
23931f8a4f
@ -282,7 +282,9 @@ results.{random} {{
|
|||||||
},
|
},
|
||||||
SearchEvents::WordsState { query_graph } => {
|
SearchEvents::WordsState { query_graph } => {
|
||||||
let cur_ranking_rule = timestamp.len() - 1;
|
let cur_ranking_rule = timestamp.len() - 1;
|
||||||
|
*timestamp.last_mut().unwrap() += 1;
|
||||||
let cur_activated_id = activated_id(×tamp);
|
let cur_activated_id = activated_id(×tamp);
|
||||||
|
*timestamp.last_mut().unwrap() -= 1;
|
||||||
let id = format!("{cur_ranking_rule}.{cur_activated_id}");
|
let id = format!("{cur_ranking_rule}.{cur_activated_id}");
|
||||||
let new_file_path = self.folder_path.join(format!("{id}.d2"));
|
let new_file_path = self.folder_path.join(format!("{id}.d2"));
|
||||||
let mut new_file = std::fs::File::create(new_file_path).unwrap();
|
let mut new_file = std::fs::File::create(new_file_path).unwrap();
|
||||||
@ -295,7 +297,9 @@ results.{random} {{
|
|||||||
},
|
},
|
||||||
SearchEvents::ProximityState { graph, paths, empty_paths_cache, universe, distances, cost } => {
|
SearchEvents::ProximityState { graph, paths, empty_paths_cache, universe, distances, cost } => {
|
||||||
let cur_ranking_rule = timestamp.len() - 1;
|
let cur_ranking_rule = timestamp.len() - 1;
|
||||||
|
*timestamp.last_mut().unwrap() += 1;
|
||||||
let cur_activated_id = activated_id(×tamp);
|
let cur_activated_id = activated_id(×tamp);
|
||||||
|
*timestamp.last_mut().unwrap() -= 1;
|
||||||
let id = format!("{cur_ranking_rule}.{cur_activated_id}");
|
let id = format!("{cur_ranking_rule}.{cur_activated_id}");
|
||||||
let new_file_path = self.folder_path.join(format!("{id}.d2"));
|
let new_file_path = self.folder_path.join(format!("{id}.d2"));
|
||||||
let mut new_file = std::fs::File::create(new_file_path).unwrap();
|
let mut new_file = std::fs::File::create(new_file_path).unwrap();
|
||||||
@ -309,7 +313,9 @@ results.{random} {{
|
|||||||
},
|
},
|
||||||
SearchEvents::TypoState { graph, paths, empty_paths_cache, universe, distances, cost } => {
|
SearchEvents::TypoState { graph, paths, empty_paths_cache, universe, distances, cost } => {
|
||||||
let cur_ranking_rule = timestamp.len() - 1;
|
let cur_ranking_rule = timestamp.len() - 1;
|
||||||
|
*timestamp.last_mut().unwrap() += 1;
|
||||||
let cur_activated_id = activated_id(×tamp);
|
let cur_activated_id = activated_id(×tamp);
|
||||||
|
*timestamp.last_mut().unwrap() -= 1;
|
||||||
let id = format!("{cur_ranking_rule}.{cur_activated_id}");
|
let id = format!("{cur_ranking_rule}.{cur_activated_id}");
|
||||||
let new_file_path = self.folder_path.join(format!("{id}.d2"));
|
let new_file_path = self.folder_path.join(format!("{id}.d2"));
|
||||||
let mut new_file = std::fs::File::create(new_file_path).unwrap();
|
let mut new_file = std::fs::File::create(new_file_path).unwrap();
|
||||||
|
Loading…
Reference in New Issue
Block a user