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

refactor multivalue fastfield, refactor range query #1749

Merged
merged 1 commit into from
Jan 5, 2023

Conversation

PSeitz
Copy link
Contributor

@PSeitz PSeitz commented Dec 29, 2022

Introduce MakeZero trait, remove make_zero from FastValue
Merge two multivalue fastfield implementations into one
prepare range query on fastfield for different types

@codecov-commenter
Copy link

Codecov Report

Merging #1749 (1ccfba9) into main (3f91592) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1749      +/-   ##
==========================================
+ Coverage   94.13%   94.14%   +0.01%     
==========================================
  Files         267      268       +1     
  Lines       50900    50856      -44     
==========================================
- Hits        47914    47878      -36     
+ Misses       2986     2978       -8     
Impacted Files Coverage Δ
src/fastfield/multivalued/mod.rs 98.45% <ø> (+1.15%) ⬆️
src/query/mod.rs 100.00% <ø> (ø)
src/query/range_query/range_query.rs 91.16% <ø> (ø)
src/fastfield/mod.rs 99.73% <100.00%> (-0.01%) ⬇️
src/fastfield/multivalued/reader.rs 91.40% <100.00%> (+2.44%) ⬆️
src/fastfield/readers.rs 89.47% <100.00%> (-0.36%) ⬇️
src/indexer/merger.rs 98.84% <100.00%> (ø)
src/lib.rs 96.04% <100.00%> (-0.44%) ⬇️
src/query/range_query/fast_field_range_query.rs 100.00% <100.00%> (ø)
src/query/range_query/range_query_ip_fastfield.rs 97.00% <100.00%> (ø)
... and 5 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


fn size_hint(&self) -> u32 {
0 // heuristic possible by checking number of hits when fetching a block
}
Copy link
Collaborator

@fulmicoton fulmicoton Jan 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add unit tests on this module? I think there are a lot of tricky logic in this

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are tests in range_query_ip_fastfield.rs. I will add another PR that enables range queries on fastfield for all types. I'll try to cover all branches with tests there

Introduce MakeZero trait, remove make_zero from FastValue
Merge two multivalue fastfield implementations into one
prepare range query on fastfield for different types
@PSeitz PSeitz merged commit 07a51eb into main Jan 5, 2023
@PSeitz PSeitz deleted the fastfield_range_query branch January 5, 2023 11:09
This was referenced Jan 13, 2023
Hodkinson pushed a commit to Hodkinson/tantivy that referenced this pull request Jan 30, 2023
Introduce MakeZero trait, remove make_zero from FastValue
Merge two multivalue fastfield implementations into one
prepare range query on fastfield for different types
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.

3 participants