summaryrefslogtreecommitdiff
path: root/scoring
diff options
context:
space:
mode:
Diffstat (limited to 'scoring')
-rw-r--r--scoring/field.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/scoring/field.go b/scoring/field.go
index 9637950..d84ab3b 100644
--- a/scoring/field.go
+++ b/scoring/field.go
@@ -6,5 +6,5 @@ var TitleWeight = 5.0
var BodyWeight = 1.0
func FieldScore(p index.Posting) float64 {
- return (float64(p.TitleCount) * TitleWeight) + (float64(p.Count) * BodyWeight)
+ return (float64(p.TitleCount) * TitleWeight) + (float64(p.BodyCount) * BodyWeight)
}