Skip to content

Commit

Permalink
Reduce boosting
Browse files Browse the repository at this point in the history
  • Loading branch information
i80and committed Dec 13, 2020
1 parent dd29ff5 commit 4527be5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fts/fts.js
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ class FTSIndex {

let termWeight = stemmedTerms.get(term) || 0.1
if (mandatoryTerms.has(term)) {
termWeight *= 2
termWeight *= 1.5
}
const termFrequencyInDoc = docEntry.termFrequencies.get(term) || 0
const termProbability = termEntry.getTimesAppeared(docEntry.propertyName, field.name) / Math.max(field.totalTokensSeen, 500)
Expand Down

0 comments on commit 4527be5

Please sign in to comment.