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

enable range query on fast field for u64 compatible types #1762

Merged
merged 2 commits into from
Jan 10, 2023

Conversation

PSeitz
Copy link
Contributor

@PSeitz PSeitz commented Jan 6, 2023

No description provided.

@codecov-commenter
Copy link

codecov-commenter commented Jan 6, 2023

Codecov Report

Merging #1762 (c2fa44e) into main (514d23a) will increase coverage by 0.05%.
The diff coverage is 96.72%.

❗ Current head c2fa44e differs from pull request most recent head b91c52a. Consider uploading reports for the commit b91c52a to get more accurate results

@@            Coverage Diff             @@
##             main    #1762      +/-   ##
==========================================
+ Coverage   94.06%   94.12%   +0.05%     
==========================================
  Files         280      281       +1     
  Lines       52285    52824     +539     
==========================================
+ Hits        49184    49719     +535     
- Misses       3101     3105       +4     
Impacted Files Coverage Δ
fastfield_codecs/src/column.rs 93.68% <ø> (ø)
src/query/range_query/range_query.rs 91.35% <94.11%> (+0.19%) ⬆️
src/query/range_query/range_query_u64_fastfield.rs 96.57% <96.57%> (ø)
src/fastfield/multivalued/reader.rs 94.02% <100.00%> (+2.61%) ⬆️
src/query/range_query/range_query_ip_fastfield.rs 97.00% <100.00%> (ø)
stacker/src/expull.rs 98.33% <0.00%> (-0.56%) ⬇️
src/indexer/segment_updater.rs 95.44% <0.00%> (+0.13%) ⬆️
src/schema/schema.rs 98.91% <0.00%> (+0.13%) ⬆️
src/query/query_parser/query_parser.rs 95.25% <0.00%> (+0.16%) ⬆️
src/query/boolean_query/block_wand.rs 97.06% <0.00%> (+0.20%) ⬆️
... and 4 more

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

@PSeitz PSeitz force-pushed the fastfield_range_query branch from 518022c to ac53335 Compare January 6, 2023 05:58
@fulmicoton fulmicoton requested review from ChillFish8 and removed request for ChillFish8 January 6, 2023 06:10
use crate::core::SegmentReader;
use crate::error::TantivyError;
use crate::query::explanation::does_not_match;
use crate::query::range_query::range_query_ip_fastfield::IPFastFieldRangeWeight;
use crate::query::{BitSetDocSet, ConstScorer, EnableScoring, Explanation, Query, Scorer, Weight};
use crate::schema::{Field, IndexRecordOption, Term, Type};
use crate::termdict::{TermDictionary, TermStreamer};
use crate::{DocId, Score};
use crate::{DateTime, DocId, Score};

pub(crate) fn map_bound<TFrom, TTo, Transform: Fn(&TFrom) -> TTo>(
bound: &Bound<TFrom>,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
bound: &Bound<TFrom>,
bound: Bound<TFrom>,

@PSeitz PSeitz force-pushed the fastfield_range_query branch from ac53335 to e8917be Compare January 6, 2023 09:55
@PSeitz PSeitz force-pushed the fastfield_range_query branch from e8917be to c2fa44e Compare January 10, 2023 02:33
@PSeitz PSeitz force-pushed the fastfield_range_query branch from c2fa44e to b91c52a Compare January 10, 2023 02:35
@PSeitz PSeitz merged commit 7c6cc81 into main Jan 10, 2023
@PSeitz PSeitz deleted the fastfield_range_query branch January 10, 2023 03:08
This was referenced Jan 13, 2023
Hodkinson pushed a commit to Hodkinson/tantivy that referenced this pull request Jan 30, 2023
…ss#1762)

* enable range query on fast field for u64 compatible types

* rename, update benches
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.

4 participants