Skip to content

Commit

Permalink
Bump luceneVersion from 9.12.0 to 10.0.0 (JabRef#11960)
Browse files Browse the repository at this point in the history
* Bump luceneVersion from 9.12.0 to 10.0.0

Bumps `luceneVersion` from 9.12.0 to 10.0.0.

Updates `org.apache.lucene:lucene-core` from 9.12.0 to 10.0.0

Updates `org.apache.lucene:lucene-queryparser` from 9.12.0 to 10.0.0

Updates `org.apache.lucene:lucene-queries` from 9.12.0 to 10.0.0

Updates `org.apache.lucene:lucene-analysis-common` from 9.12.0 to 10.0.0

Updates `org.apache.lucene:lucene-highlighter` from 9.12.0 to 10.0.0

---
updated-dependencies:
- dependency-name: org.apache.lucene:lucene-core
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: org.apache.lucene:lucene-queryparser
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: org.apache.lucene:lucene-queries
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: org.apache.lucene:lucene-analysis-common
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: org.apache.lucene:lucene-highlighter
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix lucene

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Siedlerchr <siedlerkiller@gmail.com>
  • Loading branch information
2 people authored and ExrosZ-Alt committed Oct 17, 2024
1 parent 2fe0539 commit 62fe957
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ dependencies {
exclude group: 'commons-logging'
}

def luceneVersion = "9.12.0"
def luceneVersion = "10.0.0"
implementation "org.apache.lucene:lucene-core:$luceneVersion"
implementation "org.apache.lucene:lucene-queryparser:$luceneVersion"
implementation "org.apache.lucene:lucene-queries:$luceneVersion"
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 @@ -163,7 +163,7 @@
/**
* In case the version is updated, please also increment {@link org.jabref.model.search.SearchFieldConstants#VERSION} to trigger reindexing.
*/
uses org.apache.lucene.codecs.lucene912.Lucene912Codec;
uses org.apache.lucene.codecs.lucene100.Lucene100Codec;
requires org.apache.lucene.analysis.common;
requires org.apache.lucene.core;
requires org.apache.lucene.highlighter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ private SearchResults searchInBibFields(Query searchQuery) throws IOException {
private SearchResults search(IndexSearcher indexSearcher, Query searchQuery, boolean shouldSearchInLinkedFiles) throws IOException {
TopDocs topDocs = indexSearcher.search(searchQuery, Integer.MAX_VALUE);
StoredFields storedFields = indexSearcher.storedFields();
LOGGER.debug("Found {} matching documents", topDocs.totalHits.value);
LOGGER.debug("Found {} matching documents", topDocs.totalHits.value());
return getSearchResults(topDocs, storedFields, searchQuery, shouldSearchInLinkedFiles);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public enum SearchFieldConstants {
* 2. Lucene codec changes (see module-info.java Lucene section)
* Incrementing triggers reindexing.
*/
VERSION("2"),
VERSION("3"),
DEFAULT_FIELD("any"),
ENTRY_ID("id"),
ENTRY_TYPE("entrytype"),
Expand Down

0 comments on commit 62fe957

Please sign in to comment.