Skip to content

Commit

Permalink
Update lucene version to 9.4 (#9213)
Browse files Browse the repository at this point in the history
* Update lucene version

* bump changelog
  • Loading branch information
Siedlerchr authored Oct 3, 2022
1 parent 3d3a0f0 commit 629c548
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ Note that this project **does not** adhere to [Semantic Versioning](http://semve

### Changed

- We upgraded to Lucene 9.4 for the fulltext search.
Thus, the now created search index cannot be read from older versions of JabRef anylonger.
⚠️ JabRef will recreate the index in a new folder for new files and this will take a long time for a huge library.
Moreover, switching back and forth JabRef versions and meanwhile adding PDFs also requires rebuilding the index now and then.
[#9213](https://github.com/JabRef/jabref/pull/9213)
- Genres are now mapped correctly to entry types when importing MODS files. [#9185](https://github.com/JabRef/jabref/issues/9185)
- We improved the Citavi Importer to also import so called Knowledge-items into the field `comment` of the corresponding entry [#9025](https://github.com/JabRef/jabref/issues/9025)
- We removed wrapping of string constants when writing to a `.bib` file.
Expand Down
10 changes: 5 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,11 @@ dependencies {
implementation 'org.apache.pdfbox:fontbox:3.0.0-RC1'
implementation 'org.apache.pdfbox:xmpbox:3.0.0-RC1'

implementation 'org.apache.lucene:lucene-core:9.3.0'
implementation 'org.apache.lucene:lucene-queryparser:9.3.0'
implementation 'org.apache.lucene:lucene-queries:9.3.0'
implementation 'org.apache.lucene:lucene-analysis-common:9.3.0'
implementation 'org.apache.lucene:lucene-highlighter:9.3.0'
implementation 'org.apache.lucene:lucene-core:9.4.0'
implementation 'org.apache.lucene:lucene-queryparser:9.4.0'
implementation 'org.apache.lucene:lucene-queries:9.4.0'
implementation 'org.apache.lucene:lucene-analysis-common:9.4.0'
implementation 'org.apache.lucene:lucene-highlighter:9.4.0'

implementation group: 'org.apache.commons', name: 'commons-csv', version: '1.9.0'
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.12.0'
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,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.lucene92.Lucene92Codec;
uses org.apache.lucene.codecs.lucene94.Lucene94Codec;

requires org.apache.lucene.queryparser;
uses org.apache.lucene.queryparser.classic.MultiFieldQueryParser;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "lucene92";
public static final String VERSION = "lucene94";
}

0 comments on commit 629c548

Please sign in to comment.