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

Upgrade to Lucene 9.9.0 #102782

Merged
merged 161 commits into from Dec 4, 2023
Merged

Conversation

ChrisHegarty
Copy link
Contributor

@ChrisHegarty ChrisHegarty commented Nov 29, 2023

Upgrade to Lucene 9.9.0

TODO:

  • Update TransportVersion constant (75c5b87)
  • Review and Update IndexVersion constant (12906cd)
  • Remove lucene RC maven repo
  • Verify Changelogs (there is currently just one!) (36869d4)

Note: This PR will merge it's commits into main (rather than squashing), in order to preserve history and already-reviewed changes.

Adds new max_inner_product vector similarity function. This differs from dot_product in the following ways:

Doesn't require vectors to be normalized
Scales the similarity between vectors differently to prevent negative scores
This adds a version for the Lucene upgrade and adjusts some tests.
…#99962)

Fix compiling error after adding a new method to RandomAccessInput
interface.
@elasticsearchmachine
Copy link
Collaborator

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

@elasticsearchmachine
Copy link
Collaborator

Hi @ChrisHegarty, I've created a changelog YAML for you.

@ChrisHegarty
Copy link
Contributor Author

@elasticsearchmachine run elasticsearch-ci/part-1

@benwtrent benwtrent added the cloud-deploy Publish cloud docker image for Cloud-First-Testing label Nov 30, 2023
@ChrisHegarty ChrisHegarty added the test-windows Trigger CI checks on Windows label Nov 30, 2023
Quantized search result scores can be slightly different depending on
if they are merged into a single segment, etc.
@javanna
Copy link
Member

javanna commented Nov 30, 2023

This all looks good to me, besides one small thing: I think we are missing a changelog for the " Automatically quantize vectors for kNN search" change, is that possible @benwtrent ?

@benwtrent
Copy link
Member

@javanna you are correct, let me commit it really quick

@ChrisHegarty
Copy link
Contributor Author

@elasticsearchmachine run elasticsearch-ci/part-1

Comment on lines +109 to +112
Matcher matcher;
if ("UPGRADE_TO_LUCENE_9_9".equals(field.getName())) {
// OK
} else if ((matcher = historicalVersion.matcher(field.getName())).matches()) {
Copy link
Member

Choose a reason for hiding this comment

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

This is the only thing I don't really understand. But the PR is ++ from me!

@ChrisHegarty ChrisHegarty merged commit 605c76e into elastic:main Dec 4, 2023
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cloud-deploy Publish cloud docker image for Cloud-First-Testing :Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team test-windows Trigger CI checks on Windows >upgrade v8.12.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants