Skip to content

Update for Solr 10 - #60

Open
stweil wants to merge 3 commits into
vufind-org:devfrom
stweil:update_solr_10
Open

Update for Solr 10#60
stweil wants to merge 3 commits into
vufind-org:devfrom
stweil:update_solr_10

Conversation

@stweil

@stweil stweil commented Aug 24, 2026

Copy link
Copy Markdown

TODO:

stweil added 2 commits August 24, 2026 09:34
Solr 10 bundles Lucene 10, whose class files use Java records;
compiling against them fails with --release 11.

Assisted-by: OpenCode / qwen3.8-27b-thinking (Alibaba Cloud)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Lucene 10 turned TotalHits into a record, so the public value
field is now accessed through a value() method.

SolrJ 10 changed the SolrRequest API: the constructor now takes a
SolrRequestType argument, getRequestType() returns the new
SolrRequestType enum instead of a String, and createResponse()
now receives the parsed NamedList instead of a SolrClient.

Assisted-by: OpenCode / qwen3.8-27b-thinking (Alibaba Cloud)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
@stweil

stweil commented Aug 24, 2026

Copy link
Copy Markdown
Author

The CI build still uses Solr 9/Lucene 9 API. Therefore it fails.

While the Solr 10 upgrade is pending in vufind-org/vufind (PR
5553), build against the corresponding pull request branch instead
of vufind's dev branch, which still uses Solr 9.

Solr 10 requires Java 21 or later, so raise the CI Java version
from 17 to 21.

Assisted-by: OpenCode / qwen3.8-27b-thinking (Alibaba Cloud)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
@stweil

stweil commented Aug 25, 2026

Copy link
Copy Markdown
Author

.github/workflows/ci.yaml now uses my own fork of VuFind to fix the CI test. This should be fixed as soon as upstream VuFind has support for Solr 10.

@demiankatz

Copy link
Copy Markdown
Member

Thanks, @stweil -- I've added a TODO checklist about this so we don't forget to change it back when we're ready to merge this. I guess we should merge the VuFind PR first once everything is ready.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants