web search done right
fix typo
Mikkel Denkerfb7c191c7342
diff --git a/crates/core/src/webgraph/query/collector/group_sketch.rs b/crates/core/src/webgraph/query/collector/group_sketch.rsindex 5f5eb14c..e5f24e48 100644--- a/crates/core/src/webgraph/query/collector/group_sketch.rs+++ b/crates/core/src/webgraph/query/collector/group_sketch.rs@@ -60,7 +60,7 @@ impl GroupSketchCollector {}impl Collector for GroupSketchCollector {- type Fruit = FxHashMap<u64, HyperLogLog<4069>>;+ type Fruit = FxHashMap<u64, HyperLogLog<4096>>;type Child = GroupSketchSegmentCollector;fn for_segment(@@ -99,7 +99,7 @@ impl Collector for GroupSketchCollector {&self,segment_fruits: Vec<<Self::Child as tantivy::collector::SegmentCollector>::Fruit>,) -> crate::Result<Self::Fruit> {- let mut groups: FxHashMap<u64, HyperLogLog<4069>> = FxHashMap::default();+ let mut groups: FxHashMap<u64, HyperLogLog<4096>> = FxHashMap::default();for fruit in segment_fruits {for (group, hll) in fruit {@@ -114,12 +114,12 @@ impl Collector for GroupSketchCollector {pub struct GroupSketchSegmentCollector {group: Column<u64>,value: Column<u64>,- groups: FxHashMap<u64, HyperLogLog<4069>>,+ groups: FxHashMap<u64, HyperLogLog<4096>>,filter: Option<Box<dyn SegmentColumnFieldFilter>>,}impl tantivy::collector::SegmentCollector for GroupSketchSegmentCollector {- type Fruit = FxHashMap<u64, HyperLogLog<4069>>;+ type Fruit = FxHashMap<u64, HyperLogLog<4096>>;fn collect(&mut self, doc: tantivy::DocId, _: tantivy::Score) {if let Some(filter) = &self.filter {diff --git a/crates/core/src/webgraph/query/group_by.rs b/crates/core/src/webgraph/query/group_by.rsindex 2a9777f1..7790f4a8 100644--- a/crates/core/src/webgraph/query/group_by.rs+++ b/crates/core/src/webgraph/query/group_by.rs@@ -93,8 +93,8 @@ impl HostGroupSketchQuery {impl Query for HostGroupSketchQuery {type Collector = GroupSketchCollector;type TantivyQuery = Box<dyn tantivy::query::Query>;- type IntermediateOutput = FxHashMap<u64, HyperLogLog<4069>>;- type Output = FxHashMap<u64, HyperLogLog<4069>>;+ type IntermediateOutput = FxHashMap<u64, HyperLogLog<4096>>;+ type Output = FxHashMap<u64, HyperLogLog<4096>>;fn tantivy_query(&self, searcher: &crate::webgraph::searcher::Searcher) -> Self::TantivyQuery {let mut raw: Self::TantivyQuery = match self.node {