From 4e00a72ee2eefd3a00d02dd12e6e646b5322ac87 Mon Sep 17 00:00:00 2001 From: Johannes Baiter Date: Fri, 13 Sep 2024 10:18:10 +0200 Subject: [PATCH] Release 0.9.1: Solr 9.7 compatibility, fixes --- docs/changes.md | 10 +++++++++- docs/installation.md | 2 +- pom.xml | 2 +- .../dbmdz/solrocr/lucene/OcrFieldHighlighter.java | 1 - 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/docs/changes.md b/docs/changes.md index 4241ffea..9052b72f 100644 --- a/docs/changes.md +++ b/docs/changes.md @@ -1,6 +1,14 @@ -## Unreleased +## 0.9.1 (2024-09-13) +[GitHub Release](https://github.com/dbmdz/solr-ocrhighlighting/releases/tag/0.9.1) + +**Changed** +- During indexing, we now only need a single pass through the input files, instead of + two, this is in preparation for the S3 storage backend, where we don't have the luxury + of relying on a page cache to paper over our inefficencies. **Fixed** +- Fix bug that resulted in missed matches during highlighting (#442, thanks @schmika!) +- Fix bug that resulted in incomplete reads from the input file under some circumstances (#441, thanks @schmika!) - Compatibility with Solr 9.7 ## 0.9.0 (2024-06-12) diff --git a/docs/installation.md b/docs/installation.md index 49c0f726..7bbd3eb5 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -19,7 +19,7 @@ your Solrcloud cluster. All paths are relative to the Solr installation director `$ ./bin/solr package add-repo dbmdz.github.io https://dbmdz.github.io/solr` - **Install package** in the latest version:
`$ ./bin/solr package install ocrhighlighting` if you're on Solr 9, otherwise: - `$ ./bin/solr package install ocrhighlighting:0.9.0-solr78` + `$ ./bin/solr package install ocrhighlighting:0.9.1-solr78` !!! caution "Be sure to use the `ocrhighlighting:` prefix when specifying classes in your configuration." When using the Package Manager, classes from plugins have to be prefixed (separated by a colon) by diff --git a/pom.xml b/pom.xml index 0c120e03..d1ee001c 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ de.digitalcollections solr-ocrhighlighting - 0.9.1-SNAPSHOT + 0.9.1 Solr OCR Highlighting Plugin diff --git a/src/main/java/com/github/dbmdz/solrocr/lucene/OcrFieldHighlighter.java b/src/main/java/com/github/dbmdz/solrocr/lucene/OcrFieldHighlighter.java index bb3bf8f1..1cfb7f30 100644 --- a/src/main/java/com/github/dbmdz/solrocr/lucene/OcrFieldHighlighter.java +++ b/src/main/java/com/github/dbmdz/solrocr/lucene/OcrFieldHighlighter.java @@ -38,7 +38,6 @@ import org.apache.lucene.search.uhighlight.FieldOffsetStrategy; import org.apache.lucene.search.uhighlight.OffsetsEnum; import org.apache.lucene.search.uhighlight.Passage; -import org.apache.lucene.search.uhighlight.PassageFormatter; import org.apache.lucene.search.uhighlight.PassageScorer; import org.apache.lucene.search.uhighlight.UnifiedHighlighter; import org.apache.lucene.util.BytesRef;