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 tests for multi_match phrase prefix query across multiple fields #95772

Merged
merged 3 commits into from
May 10, 2023

Conversation

javanna
Copy link
Member

@javanna javanna commented May 3, 2023

This adds unit test coverage for a bug that was recently found in Lucene (see apache/lucene#12260). We would have caught it earlier if we were testing the underlying lucene query being generated.

Closes #95738

This adds unit test coverage for a bug that was recently found in
Lucene. We would have caught it earlier if we were testing the
underlying lucene query being generated.

Closes elastic#95738
@javanna javanna added >test Issues or PRs that are addressing/adding tests :Search/Search Search-related issues that do not fall into other categories v8.8.0 labels May 3, 2023
@javanna javanna force-pushed the test/to_query_phrase_prefix branch from 184799f to 984bb73 Compare May 3, 2023 09:50
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search (Team:Search)

@elasticsearchmachine elasticsearchmachine added Team:Search Meta label for search team v8.9.0 labels May 3, 2023
@javanna
Copy link
Member Author

javanna commented May 3, 2023

The additional unit test will fail until we have upgraded to a Lucene version that fixes the bug upstream.

@javanna javanna added v8.9.0 and removed v8.9.0 labels May 3, 2023
@javanna javanna added the auto-backport Automatically create backport pull requests when merged label May 10, 2023
@javanna javanna requested a review from romseygeek May 10, 2023 12:52
Copy link
Contributor

@romseygeek romseygeek left a comment

Choose a reason for hiding this comment

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

LGTM, one question to clarify something.

@javanna javanna merged commit 53347ab into elastic:main May 10, 2023
@javanna javanna deleted the test/to_query_phrase_prefix branch May 10, 2023 13:14
javanna added a commit to javanna/elasticsearch that referenced this pull request May 10, 2023
…lastic#95772)

This adds unit test coverage for a bug that was recently found in
Lucene. We would have caught it earlier if we were testing the
underlying lucene query being generated.

Closes elastic#95738
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.8

javanna added a commit that referenced this pull request May 10, 2023
…95772)

This adds unit test coverage for a bug that was recently found in
Lucene. We would have caught it earlier if we were testing the
underlying lucene query being generated.

Closes #95738
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Automatically create backport pull requests when merged :Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team >test Issues or PRs that are addressing/adding tests v8.8.0 v8.9.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

multi_match lucene query broken since 8.7.0
3 participants