web search done right
Allow nodes to score themselves in ranking adjustments. Sometimes a search result would get bumped when it was being disliked, which caused a bit of confusion (understandably). This was due to not allowing sites to score themselves when sufficiently many sites where liked/disliked. This created a situation where a site might e.g. in result 3 and then being bumped down to result 5 after being liked or vice versa. This caused a very bad user experience.
Mikkel Denker5b13d7f35c42
diff --git a/core/src/searcher/local.rs b/core/src/searcher/local.rsindex 9b53aedd..13c74180 100644--- a/core/src/searcher/local.rs+++ b/core/src/searcher/local.rs@@ -204,14 +204,10 @@ impl LocalSearcher {.map(|node| node.id()).collect();- let mut scorer = store+ let scorer = store.inbound_similarity.scorer(&liked_sites, &disliked_sites, false);- if liked_sites.len() + disliked_sites.len() > 1 {- scorer.set_self_score(0.0);- }-aggregator.set_inbound_similarity(scorer);}