From 1781806ee6e67097990d9d90d83377fccf1f8df2 Mon Sep 17 00:00:00 2001 From: Paul Masurel Date: Tue, 2 Aug 2016 22:40:22 +0900 Subject: [PATCH] fixing unit tests --- src/postings/union_postings.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/postings/union_postings.rs b/src/postings/union_postings.rs index 43e66599c..2b40de95f 100644 --- a/src/postings/union_postings.rs +++ b/src/postings/union_postings.rs @@ -74,8 +74,7 @@ impl DocSet for UnionPostings { let head = self.queue.pop(); match head { Some(HeapItem(doc, ord, tf)) => { - // let fieldnorm = self.get_field_norm(ord, doc); - let fieldnorm: u32 = 1u32; + let fieldnorm = self.get_field_norm(ord, doc); self.scorer.update(ord, tf, fieldnorm); self.enqueue(ord); self.doc = doc;