0
0
Fork 0
This commit is contained in:
Steve Yen 2018-03-03 19:39:21 -08:00
parent d44c5ad568
commit 85761c6a57
1 changed files with 1 additions and 1 deletions

View File

@ -253,7 +253,7 @@ func (s *Segment) processDocument(result *index.AnalysisResult) {
// now that its been rolled up into docMap, walk that
for fieldID, tokenFrequencies := range docMap {
dict := s.Dicts[fieldID]
norm := float32(1.0/math.Sqrt(float64(fieldLens[fieldID])))
norm := float32(1.0 / math.Sqrt(float64(fieldLens[fieldID])))
for term, tokenFreq := range tokenFrequencies {
pid := dict[term] - 1
bs := s.Postings[pid]