Closed olivernn closed 11 years ago
Updates to #28 which fixes #27.
This makes sure that documents with an empty field do not end up getting a NaN score when searching.
NaN
If a field has no tokens it should not contribute to the tf for that token, before it was and 0 / 0 leads to a NaN.
Updates to #28 which fixes #27.
This makes sure that documents with an empty field do not end up getting a
NaN
score when searching.If a field has no tokens it should not contribute to the tf for that token, before it was and 0 / 0 leads to a
NaN
.