-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat: Bump [email protected] and [email protected] #10810
Open
miurahr
wants to merge
8
commits into
languagetool-org:master
Choose a base branch
from
miurahr:topic/miurahr/migrate-lucene-8.11.3
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
7a07955
feat: Bump [email protected] and [email protected]
miurahr b3ae165
fix: update for migrating lucene 8.11.3
miurahr f7fa3cf
chore: import lucene-core in -wikipedia
miurahr 23aba0e
chore: bump lucene 8.11.3 for lt-wikiepdia
miurahr 9940b68
style: revert non-mandatory changes
miurahr 593c282
Merge branch 'master' into topic/miurahr/migrate-lucene-8.11.3
miurahr 4edeeb2
fix: adjust for review comment comment from CodeRabbbit
miurahr 86295a2
Merge branch 'master' into topic/miurahr/migrate-lucene-8.11.3
miurahr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+68 Bytes
(120%)
languagetool-core/src/test/resources/org/languagetool/resource/yy/ngram-index/1grams/_0.cfe
Binary file not shown.
Binary file modified
BIN
+437 Bytes
(140%)
languagetool-core/src/test/resources/org/languagetool/resource/yy/ngram-index/1grams/_0.cfs
Binary file not shown.
Binary file modified
BIN
+149 Bytes
(160%)
languagetool-core/src/test/resources/org/languagetool/resource/yy/ngram-index/1grams/_0.si
Binary file not shown.
Binary file modified
BIN
+52 Bytes
(150%)
...getool-core/src/test/resources/org/languagetool/resource/yy/ngram-index/1grams/segments_1
Binary file not shown.
Binary file modified
BIN
+68 Bytes
(120%)
languagetool-core/src/test/resources/org/languagetool/resource/yy/ngram-index/2grams/_0.cfe
Binary file not shown.
Binary file modified
BIN
+466 Bytes
(150%)
languagetool-core/src/test/resources/org/languagetool/resource/yy/ngram-index/2grams/_0.cfs
Binary file not shown.
Binary file modified
BIN
+149 Bytes
(160%)
languagetool-core/src/test/resources/org/languagetool/resource/yy/ngram-index/2grams/_0.si
Binary file not shown.
Binary file modified
BIN
+52 Bytes
(150%)
...getool-core/src/test/resources/org/languagetool/resource/yy/ngram-index/2grams/segments_1
Binary file not shown.
Binary file modified
BIN
+68 Bytes
(120%)
languagetool-core/src/test/resources/org/languagetool/resource/yy/ngram-index/3grams/_0.cfe
Binary file not shown.
Binary file modified
BIN
+466 Bytes
(150%)
languagetool-core/src/test/resources/org/languagetool/resource/yy/ngram-index/3grams/_0.cfs
Binary file not shown.
Binary file modified
BIN
+149 Bytes
(160%)
languagetool-core/src/test/resources/org/languagetool/resource/yy/ngram-index/3grams/_0.si
Binary file not shown.
Binary file modified
BIN
+52 Bytes
(150%)
...getool-core/src/test/resources/org/languagetool/resource/yy/ngram-index/3grams/segments_1
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
💡 Codebase verification
Deprecated Lucene API Usage Detected
The update to Lucene version 8.11.3 introduces potential compatibility issues due to deprecated API usages found in the codebase.
Areas to Address:
Deprecated Methods:
DirectoryReader.open
is used in multiple files:languagetool-wikipedia/src/main/java/org/languagetool/dev/index/Searcher.java
languagetool-wikipedia/src/test/java/org/languagetool/dev/index/PatternRuleQueryBuilderTest.java
languagetool-dev/src/main/java/org/languagetool/dev/archive/StartTokenCounter.java
Existing TODO Comments:
languagetool-core/src/main/java/org/languagetool/languagemodel/BaseLanguageModel.java
// TODO: lm.getCount("_START_") returns 0 for Google data -- see getCount(String) in LuceneLanguageModel
Recommendations:
Update Deprecated APIs:
DirectoryReader.open
with the updated methods as per Lucene 8.11.3 documentation.Address TODOs:
getCount
method functions correctly with the updated Lucene version.Comprehensive Testing:
🔗 Analysis chain
LGTM! Verify compatibility with the updated Lucene version.
The Lucene version update from 5.5.5 to 8.11.3 aligns with the PR objectives. This is a significant version jump, which may introduce breaking changes or new features.
To ensure smooth integration, please verify the following:
Run the following script to check for potential compatibility issues:
This script will help identify areas that might need attention due to the Lucene version update.
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 45771