You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "epugh (via GitHub)" <gi...@apache.org> on 2026/08/31 17:24:08 UTC
[PR] Review and tidy solr/modules/ltr code [solr]
epugh opened a new pull request, #4837:
URL: https://github.com/apache/solr/pull/4837
# Description
Split out from #4743 into smaller, per-module PRs to make review easier. This PR contains the tidy-up changes to `solr/modules/ltr` (production + test code).
# Solution
Leverage IntelliJ warnings (dead field/method removal, `toString()`/`this` interchange, `isEmpty()` idioms, javadoc/comment fixes, `interlavingAlgorithm` → `interleavingAlgorithm` field rename, `TestUserTermScorereQDF` → `TestUserTermScorerQDF` typo-fix rename).
**One non-cosmetic change to flag explicitly:** `TestWrapperModel.java`'s `testOverwrittenMethods()` now skips `private` methods when reflecting over `LTRScoringModel`'s declared methods. Without this, `LTRScoringModel`'s private `calculateHashCode()` was being picked up as "overridable" and the test incorrectly demanded `WrapperModel` declare an override for it. This is a genuine test bug fix, not just tidying — calling it out here so it doesn't get missed in review.
# Tests
existing
Relates to #4743
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] Review and tidy solr/modules/ltr code [solr]
Posted by "epugh (via GitHub)" <gi...@apache.org>.
epugh merged PR #4837:
URL: https://github.com/apache/solr/pull/4837
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org