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

4829 minimum should match #5488

Merged
merged 3 commits into from
Oct 18, 2024
Merged

4829 minimum should match #5488

merged 3 commits into from
Oct 18, 2024

Conversation

fulmicoton
Copy link
Contributor

@fulmicoton fulmicoton commented Oct 11, 2024

Adding support for minimum_should_match

https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-minimum-should-match.html

Fixing rest compatilibility tests.

Closes #4828

@fulmicoton fulmicoton force-pushed the 4829-minimum-should-match branch 4 times, most recently from b7a4984 to d1f0dce Compare October 11, 2024 14:44
@fulmicoton fulmicoton marked this pull request as ready for review October 11, 2024 15:00
Fixing rest compatilibility tests.

Closes #4828
Copy link

github-actions bot commented Oct 15, 2024

On SSD:

Average search latency is 1.01x that of the reference (lower is better).
Ref run id: 3892, ref commit: 4ec0eb7
Link

On GCS:

Average search latency is 1.0x that of the reference (lower is better).
Ref run id: 3893, ref commit: 4ec0eb7
Link

docs/reference/es_compatible_api.md Outdated Show resolved Hide resolved
quickwit/quickwit-query/src/query_ast/tantivy_query_ast.rs Outdated Show resolved Hide resolved
must_not,
})
})
let minimum_should_match = (0usize..2).prop_map(|n: usize| n.checked_sub(1));
Copy link
Contributor

Choose a reason for hiding this comment

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

if we generate some minimum_should_match, evaluate_test must be updated to to consider it. Otherwise we don't verify it on the generated nor simplified request, so the test tests nothing

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated the evaluate_test... and found a bug! thx

@fulmicoton fulmicoton force-pushed the 4829-minimum-should-match branch 2 times, most recently from f634b98 to 0bb5f22 Compare October 16, 2024 06:20
@fulmicoton fulmicoton merged commit a2c5f1d into main Oct 18, 2024
5 checks passed
@fulmicoton fulmicoton deleted the 4829-minimum-should-match branch October 18, 2024 01:54
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.

2 participants