forked from contao/contao
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent zero values for idf measure in search algorithm (see contao#2172
) Description ----------- Our idf (inverse document frequency) measure is currently zero for terms that are present in every document. This results in divisions by zero and the ranking of other factors like term frequency and document length gets lost. By adding one to the searchCount the idf value is always larger than zero. Commits ------- 549da7c Prevent zero values for idf measure
- Loading branch information
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters