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

add support for TermSetQuery in query parser #1683

Merged
merged 3 commits into from Nov 17, 2022
Merged

Conversation

trinity-1686a
Copy link
Contributor

@trinity-1686a trinity-1686a commented Nov 15, 2022

Add support for creating a TermSetQuery from the query parser with field: IN [val1 val2 val3]

@codecov-commenter
Copy link

Codecov Report

Merging #1683 (34601b8) into main (ca62311) will increase coverage by 0.00%.
The diff coverage is 93.63%.

@@           Coverage Diff            @@
##             main    #1683    +/-   ##
========================================
  Coverage   94.03%   94.04%            
========================================
  Files         256      256            
  Lines       48956    49066   +110     
========================================
+ Hits        46038    46143   +105     
- Misses       2918     2923     +5     
Impacted Files Coverage Δ
src/query/query_parser/logical_ast.rs 80.00% <58.82%> (-8.38%) ⬇️
query-grammar/src/query_grammar.rs 99.70% <100.00%> (+<0.01%) ⬆️
query-grammar/src/user_input_ast.rs 98.01% <100.00%> (+0.14%) ⬆️
src/query/query_parser/query_parser.rs 95.38% <100.00%> (+0.34%) ⬆️
src/query/set_query.rs 96.34% <100.00%> (+0.68%) ⬆️
src/indexer/segment_updater.rs 95.31% <0.00%> (-0.14%) ⬇️
src/fastfield/multivalued/mod.rs 98.45% <0.00%> (+0.38%) ⬆️

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

but don't support executing such query
for (i, element) in elements.iter().enumerate() {
if i == 0 {
write!(formatter, "{:?}", element)?;
} else if i == MAX_DISPLAYED - 1 {
Copy link
Collaborator

Choose a reason for hiding this comment

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

nitpick. There is a small glitch if elements.len() == MAX_DISPLAYED.

We then display (0 more)

Copy link
Collaborator

Choose a reason for hiding this comment

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

It is not really user facing so no need to fix.

@trinity-1686a trinity-1686a merged commit e758080 into main Nov 17, 2022
@trinity-1686a trinity-1686a deleted the grammar-set branch November 17, 2022 15:49
This was referenced Jan 13, 2023
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.

None yet

3 participants