lucene
lucene copied to clipboard
Convert more classes to record classes
Description
- This PR addresses #13207 to convert more classes on
mainbranch to record classes on main (Lucene 10 only). - It moves a lot of data classes(120 to be precise) to use record classes that were flagged suitable in my IDE and seemed good candidate in general.
- I left a couple of them like
TotalHitsandSynonymMapas the PR is already very big and including those were leading to a lot more changes. Maybe we could do those as a separate PR.
Raising this PR since all the tests are passing(./gradlew test) but renderJavadoc task is complaining about missing java docs on some record classes(converted in this PR) which I see has the javadocs already eg: TermStats, ReaderSlice. I'm not sure why its flagging those incorrectly or if maybe I'm missing something.