-
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.
Inverse document frequency will be ignored
This probably makes sense, because
- Loading branch information
1 parent
6d0485a
commit 27c762e
Showing
2 changed files
with
20 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using Lucene.Net.Search.Similarities; | ||
|
||
namespace CreateSearchIndex; | ||
|
||
public class IgnoreInverseDocumentCount : DefaultSimilarity | ||
{ | ||
public override float Idf(long docFreq, long numDocs) | ||
{ | ||
// Very common and very rare terms are not | ||
// penalized by the search engine. | ||
return 1; | ||
} | ||
} |
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