You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* docs: reformat markdown
Reformat all the files, remove the exclusion.
Also fix a bug in the check, so it will still fail if there are markdown
problems that couldn't automatically be fixed. Most problems are
autofixed without manual effort.
* build: fix rumdl configuration to match editorconfig (indent=4)
The default is a 2-space indent, but editorconfig says 4. Make these
consistent so there is the least friction for developers.
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,9 +59,9 @@ In case your contribution fixes a bug, please create a new test case that fails
59
59
### IDE support
60
60
61
61
-*IntelliJ* - IntelliJ idea can import and build gradle-based projects out of the box. It will default to running tests by calling the gradle wrapper, and while this works, it is can be a bit slow. If instead you configure IntelliJ to use its own built-in test runner by (in 2024 version) navigating to settings for Build Execution & Deployment/Build Tools/Gradle (under File/Settings menu on some platforms) and selecting "Build and Run using: IntelliJ IDEA" and "Run Tests using: IntelliJ IDEA", then some tests will run faster. However some other tests will not run using this configuration.
62
-
-*Eclipse*- Basic support ([help/IDEs.txt](https://github.com/apache/lucene/blob/main/help/IDEs.txt#L7)).
63
-
-*VSCode*- Basic support ([help/IDEs.txt](https://github.com/apache/lucene/blob/main/help/IDEs.txt#L23)).
64
-
-*Neovim*- Basic support ([help/IDEs.txt](https://github.com/apache/lucene/blob/main/help/IDEs.txt#L32)).
62
+
-*Eclipse* - Basic support ([help/IDEs.txt](https://github.com/apache/lucene/blob/main/help/IDEs.txt#L7)).
63
+
-*VSCode* - Basic support ([help/IDEs.txt](https://github.com/apache/lucene/blob/main/help/IDEs.txt#L23)).
64
+
-*Neovim* - Basic support ([help/IDEs.txt](https://github.com/apache/lucene/blob/main/help/IDEs.txt#L32)).
65
65
-*Netbeans* - Not tested.
66
66
67
67
## Benchmarking
@@ -78,7 +78,7 @@ Feel free to share your findings (especially if your implementation performs bet
78
78
79
79
## Contributing your work
80
80
81
-
You can open a pull request at https://github.com/apache/lucene.
81
+
You can open a pull request at <https://github.com/apache/lucene>.
82
82
83
83
Please be patient. Committers are busy people too. If no one responds to your patch after a few days, please make friendly reminders. Please incorporate others' suggestions into your patch if you think they're reasonable. Finally, remember that even a patch that is not committed is useful to the community.
2. Clone Lucene's git repository (or download the source distribution).
49
49
3. Run gradle launcher script (`gradlew`).
50
50
51
-
We'll assume that you know how to get and set up the JDK - if you don't, then we suggest starting at https://jdk.java.net/ and learning more about Java, before returning to this README.
51
+
We'll assume that you know how to get and set up the JDK - if you don't, then we suggest starting at <https://jdk.java.net/> and learning more about Java, before returning to this README.
Copy file name to clipboardExpand all lines: lucene/MIGRATE.md
+27-24Lines changed: 27 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,18 +36,21 @@ Starting with Lucene 11.0.0, the index upgrade policy has been relaxed to allow
36
36
37
37
#### Upgrade Scenarios
38
38
39
-
**Scenario 1: No format breaks (wider upgrade span)**
39
+
##### Scenario 1: No format breaks (wider upgrade span)
40
+
40
41
- Index created with Lucene 10.x can be opened directly in Lucene 11.x, 12.x, 13.x, 14.x (as long as MIN_SUPPORTED_MAJOR stays ≤ 10)
41
42
- Simply open the index with the new version; segments will be upgraded gradually through normal merging
42
43
- Optional: Call `forceMerge()` or use `UpgradeIndexMergePolicy` to upgrade segment formats immediately
43
44
-**Important**: You still only get one upgrade per index lifetime. Once MIN_SUPPORTED_MAJOR is bumped above 10, the index becomes unopenable and must be reindexed.
44
45
45
-
**Scenario 2: Format breaks occur**
46
+
##### Scenario 2: Format breaks occur
47
+
46
48
- If a major version introduces incompatible format changes, `MIN_SUPPORTED_MAJOR` will be bumped
47
49
- Indexes created before the new minimum will throw `IndexFormatTooOldException`
48
50
- Full reindexing is required for such indexes
49
51
50
-
**Scenario 3: After using your upgrade**
52
+
##### Scenario 3: After using your upgrade
53
+
51
54
- Index created with Lucene 10.x, successfully opened with Lucene 14.x
52
55
- The index's creation version is still 10 (this never changes)
53
56
- When Lucene 15+ bumps MIN_SUPPORTED_MAJOR above 10, this index becomes unopenable
@@ -72,6 +75,7 @@ try (Directory dir = FSDirectory.open(indexPath)) {
72
75
#### Error Handling
73
76
74
77
Enhanced error messages will clearly indicate:
78
+
75
79
- Whether the index creation version is below `MIN_SUPPORTED_MAJOR` (reindex required)
76
80
- Whether segments are too old to read directly (sequential upgrade required)
77
81
@@ -85,7 +89,7 @@ number of segments that may be merged together.
85
89
Query caching is now disabled by default. To enable caching back, do something
@@ -124,11 +128,11 @@ DataInput.readGroupVInt method: subclasses should delegate or reimplement it ent
124
128
125
129
### OpenNLP dependency upgrade
126
130
127
-
[Apache OpenNLP](https://opennlp.apache.org) 2.x opens the door to accessing various models via the ONNX runtime. To migrate you will need to update any deprecated OpenNLP methods that you may be using.
131
+
[Apache OpenNLP](https://opennlp.apache.org) 2.x opens the door to accessing various models via the ONNX runtime. To migrate you will need to update any deprecated OpenNLP methods that you may be using.
128
132
129
133
### Snowball dependency upgrade
130
134
131
-
Snowball has folded the "German2" stemmer into their "German" stemmer, so there's no "German2" anymore. For Lucene APIs (TokenFilter, TokenFilterFactory) that accept String, "German2" will be mapped to "German" to avoid breaking users. If you were previously creating German2Stemmer instances, you'll need to change your code to create GermanStemmer instances instead. For more information see https://snowballstem.org/algorithms/german2/stemmer.html
135
+
Snowball has folded the "German2" stemmer into their "German" stemmer, so there's no "German2" anymore. For Lucene APIs (TokenFilter, TokenFilterFactory) that accept String, "German2" will be mapped to "German" to avoid breaking users. If you were previously creating German2Stemmer instances, you'll need to change your code to create GermanStemmer instances instead. For more information see <https://snowballstem.org/algorithms/german2/stemmer.html>
132
136
133
137
### Romanian analysis
134
138
@@ -155,6 +159,7 @@ Instead, call storedFields()/termVectors() to return an instance which can fetch
0 commit comments