Class FullTextLucene reads the variable "totalHits.value" from the org.apache.lucene.search.TotalHits class.
Until version 9.12.1 this was a public field "value".
From version 10.x onward TotalHits is a public record, so the access should be done with "TotalHits.value()"
Transition would be easier if the lucene project would add a public getter method "value()" to the last 9.x version.
But this is maybe to late because the announced that 9.12.1 is the last 9.x version.