Apache Lucene open-source search software
Add support for Github issue numbers in Markdown converter (e.g., MIGRATE.md file) (#13215)
Uwe Schindler26f5065e154b
diff --git a/gradle/documentation/markdown.gradle b/gradle/documentation/markdown.gradleindex 7e2d9a0ee56..0f0767c54d5 100644--- a/gradle/documentation/markdown.gradle+++ b/gradle/documentation/markdown.gradle@@ -103,6 +103,8 @@ class MarkdownFilter extends FilterReader {// first replace LUCENE and SOLR issue numbers with a markdown linkmarkdownSource = markdownSource.replaceAll(/(?s)\b(LUCENE|SOLR)\-\d+\b/,'[$0](https://issues.apache.org/jira/browse/$0)');+ markdownSource = markdownSource.replaceAll(/(?s)\b(GITHUB#|GH-)(\d+)\b/,+ '[$0](https://github.com/apache/lucene/issues/$2)');// convert the markdownMutableDataSet options = new MutableDataSet();diff --git a/lucene/MIGRATE.md b/lucene/MIGRATE.mdindex 26053e99ca9..6427daf5ec1 100644--- a/lucene/MIGRATE.md+++ b/lucene/MIGRATE.md@@ -21,7 +21,7 @@### OpenNLP dependency upgrade-[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 and be running on Java 17.+[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.### IndexWriter requires a parent document field in order to use index sorting with document blocks (GITHUB#12829)@@ -100,7 +100,7 @@ determine the number of valid ordinals for the currently-positioned document up-illegal to call `SortedSetDocValues#nextOrd()` more than `SortedSetDocValues#docValueCount()` timesfor the currently-positioned document (doing so will result in undefined behavior).-### IOContext removed from Directory#openChecksumInput (GITHUB-12027)+### IOContext removed from Directory#openChecksumInput (GITHUB#12027)`Directory#openChecksumInput` no longer takes in `IOContext` as a parameter, and will always use value`IOContext.READONCE` for opening internally, as that's the only valid usage pattern for checksum input.@@ -151,6 +151,18 @@ may throw `IOException` on index problems, bubbling up unexpectedly to the calle`(Reverse)PathHierarchyTokenizer` now produces sequential (instead of overlapping) tokens with accurateoffsets, making positional queries and highlighters possible for fields tokenized with this tokenizer.+### Removed Scorable#docID() (GITHUB#12407)++This method has been removed in order to enable more search-time optimizations.+Use the doc ID passed to `LeafCollector#collect` to know which doc ID is being+collected.++### ScoreCachingWrappingScorer now wraps a LeafCollector instead of a Scorable (GITHUB#12407)++In order to adapt to the removal of `Scorable#docID()`,+`ScoreCachingWrappingScorer` now wraps a `LeafCollector` rather than a+`Scorable`.+### Some classes converted to records classes (GITHUB#13207)Some classes with only final fields and no programming logic were converted to `record` classes.@@ -207,18 +219,6 @@ Lucene 9.2 or stay with 9.0.See LUCENE-10558 for more details and workarounds.-### Removed Scorable#docID() (GITHUB#12407)--This method has been removed in order to enable more search-time optimizations.-Use the doc ID passed to `LeafCollector#collect` to know which doc ID is being-collected.--### ScoreCachingWrappingScorer now wraps a LeafCollector instead of a Scorable (GITHUB#12407)--In order to adapt to the removal of `Scorable#docID()`,-`ScoreCachingWrappingScorer` now wraps a `LeafCollector` rather than a-`Scorable`.-## Migration from Lucene 8.x to Lucene 9.0### Rename of binary artifacts from '**-analyzers-**' to '**-analysis-**' (LUCENE-9562)