Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing fieldnorm indexing #1620

Merged
merged 1 commit into from Oct 14, 2022
Merged

Fix missing fieldnorm indexing #1620

merged 1 commit into from Oct 14, 2022

Conversation

PSeitz
Copy link
Contributor

@PSeitz PSeitz commented Oct 14, 2022

Fixes broken search (no results) with BM25 for u64, i64, f64, bool, bytes and date after deletion and merge.
There were no fieldnorms recorded for those field. After merge InvertedIndexReader::total_num_tokens returns 0 (Sum over the fieldnorms is 0). BM25 does not work when total_num_tokens is 0.
Fixes #1617

Fixes broken search (no results) with BM25 for u64, i64, f64, bool, bytes and date after deletion and merge.
There were no fieldnorms recorded for those field. After merge InvertedIndexReader::total_num_tokens returns 0 (Sum over the fieldnorms is 0). BM25 does not work when total_num_tokens is 0.
Fixes #1617
@PSeitz PSeitz merged commit 4b9d1fe into main Oct 14, 2022
@PSeitz PSeitz deleted the fix_fieldnorms_indexing branch October 14, 2022 05:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fails to find u64/i64/f64/bool/bytes after delete and merge
2 participants