From 7ec5742e5626941cf49350cadd702aa686c89474 Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Mon, 4 Dec 2023 16:24:42 +0100 Subject: [PATCH] Update Lucene index version --- CHANGELOG.md | 1 + src/main/java/module-info.java | 2 +- .../java/org/jabref/model/pdf/search/SearchFieldConstants.java | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4efd64530f1..cc66aecf4e3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,7 @@ Note that this project **does not** adhere to [Semantic Versioning](https://semv - We replaced "SearchAll" in Web Search by "Search Selected". [#10556](https://github.com/JabRef/jabref/issues/10556) - Short DOI formatter now checks, if the value is already formatted. If so, it returns the value instead of calling the ShortDOIService again. [#10589](https://github.com/JabRef/jabref/issues/10589) - We upgraded to JavaFX 21.0.1. As a consequence JabRef requires now macOS 11 or later and GTK 3.8 or later on Linux [10627](https://github.com/JabRef/jabref/pull/10627). +- We upgraded to Lucene 9.9 for the fulltext search. The search index will be rebuild. [#10686](https://github.com/JabRef/jabref/pull/10686) ### Fixed diff --git a/src/main/java/module-info.java b/src/main/java/module-info.java index 70eb10b2914..8e26519c8e5 100644 --- a/src/main/java/module-info.java +++ b/src/main/java/module-info.java @@ -121,7 +121,7 @@ // fulltext search requires org.apache.lucene.core; // In case the version is updated, please also adapt SearchFieldConstants#VERSION to the newly used version - uses org.apache.lucene.codecs.lucene95.Lucene95Codec; + uses org.apache.lucene.codecs.lucene99.Lucene99Codec; requires org.apache.lucene.queryparser; uses org.apache.lucene.queryparser.classic.MultiFieldQueryParser; diff --git a/src/main/java/org/jabref/model/pdf/search/SearchFieldConstants.java b/src/main/java/org/jabref/model/pdf/search/SearchFieldConstants.java index b4fa07c5d34..6d381a2b249 100644 --- a/src/main/java/org/jabref/model/pdf/search/SearchFieldConstants.java +++ b/src/main/java/org/jabref/model/pdf/search/SearchFieldConstants.java @@ -10,5 +10,5 @@ public class SearchFieldConstants { public static final String[] PDF_FIELDS = new String[]{PATH, CONTENT, PAGE_NUMBER, MODIFIED, ANNOTATIONS}; - public static final String VERSION = "95"; + public static final String VERSION = "99"; }