-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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 6.2.0 #20147
Upgrade to Lucene 6.2.0 #20147
Conversation
@@ -299,6 +300,7 @@ public StoreStats stats() throws IOException { | |||
|
|||
public void renameFile(String from, String to) throws IOException { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just remove it, it seems only test use this method now?
looks great - left some minors |
I pushed some more commits @s1monw. |
LGTM |
@@ -138,16 +138,6 @@ Similarity getDefaultSimilarity() { | |||
} | |||
|
|||
@Override | |||
public float coord(int overlap, int maxOverlap) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you should change the constructor a few lines above in this file to extend PerFieldSimilarityWrapper(defaultSimilarity) rather than the deprecated default constructor?
I left one comment about SimilarityService but otherwise LGTM |
Thanks @jpountz, good catch! I pushed a new commit to call |
LGTM |
The upgrade was mostly uneventful, except
Completion090PostingsFormat
had to switch from an ordinary codec header to an index file header (Lucene now requires this of all files that enter aCFS
), andBlobStoreRepository.restoreFile
sometimes needs to overwrite an existing file (not sure why, seems dangerous? I left a TODO).Lucene now requires that all files created with
Directory.createOutput
are new; I was surprised more places in ES don't seem angry about that.I also fixed
Store.renameTempFilesSafe
to only fsync after all files are renamed.Closes #20092