Repository navigation
SOLR-18458: Remove the legacy debugQuery parameter - #5215
Closed
nick-boss-tech wants to merge 1 commit into
Closed
nick-boss-tech wants to merge 1 commit into
nick-boss-tech wants to merge 1 commit into
Conversation
Contributor
Author
|
Closing this for now: the 10.x deprecation step should probably come first, so we will rethink the approach before reopening. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 AI text below 🤖 (reviewed by Nick Shanin)
https://issues.apache.org/jira/browse/SOLR-18458
What happens today
The legacy
debugQuery=trueparameter still enables debug output alongside thedebugparameter that replaced it. The ticket asks to dropdebugQueryin lieu ofdebug=all. At the base, CommonParams still defines it and the debug component still honors it, and a rerank fallback treatsdebug=resultsas a debug request even without a response builder asking for one.What this change does
debugQueryis removed;debugis the only switch. The constant and its handling are gone from CommonParams and DebugComponent, SolrJ and the Admin UI no longer send or offer it, and the Ref Guide pages that documented it now documentdebugonly. The rerank fallback now keys ondebug=allanddebug=true, notdebug=results. Tests that useddebugQueryare migrated to thedebugparameter, and a new test pins that the legacy parameter is ignored.Proof
The new coverage fails without the change and passes with it, and the touched modules check clean. Verified at the gated tree (this head is a squash of that tree, byte-identical):
18458C0FFEE18458: core 290 tests, SolrJ 2 tests, LTR 91 tests, language-models 23 tests, no failures; the rerank tests run 14 with no failures, including the newdebug=allfallback test.check -x testpasses on:solr:core,:solr:solrj,:solr:modules:ltr, and:solr:modules:language-models.Limits
debugQuery=truenow gets no debug output and no warning. That silence is inherited from how unknown parameters behave generally in Solr.Checklist
mainbranch../gradlew check. Not run in full: the module checks listed under Proof pass at the head.AI-generated description. Nick Shanin directed the work and takes responsibility for this contribution.