Skip to content

SOLR-18332: More qt-removal from tests, rd 2 - #4713

Open
gerlowskija wants to merge 2 commits into
apache:mainfrom
gerlowskija:qt-removal-from-tests-pt2c
Open

SOLR-18332: More qt-removal from tests, rd 2#4713
gerlowskija wants to merge 2 commits into
apache:mainfrom
gerlowskija:qt-removal-from-tests-pt2c

Conversation

@gerlowskija

Copy link
Copy Markdown
Contributor

The 'qt' parameter and several related methods in SolrJ are deprecated.
This deprecation may not stick, but it's still worth minimizing use of this
feature as much as possible.

Many tests rely on it unnecessarily; this PR is one in a number of batches
slowly removing these usages. This one in particular focuses on
solr-core tests, especially those descended from
BaseDistributedSearchTestCase and that rely on certain query() test
helpers available to this class.

Focuses on solr-core tests, especially those descended from
BaseDistributedSearchTestCase and that rely on certain `query()` test
helpers available to this class.

Many 'qt' usages remain, but this is a second round of the removals.
@gerlowskija

Copy link
Copy Markdown
Contributor Author

(FYI @dsmiley )

}

QueryRequest qr = new QueryRequest(params("qt", "/get", "id", "1000"));
QueryRequest qr = new QueryRequest("/get", params("id", "1000"));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so much nicer!

}
}""";
QueryResponse rsp = query(CommonParams.JSON, jsonQuery, CommonParams.QT, "/search-elevate");
QueryResponse rsp = query("/search-elevate", params(CommonParams.JSON, jsonQuery));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just reads so much nicer!

Thread.sleep(100);

queryPartialResults(
"/select",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think I even like better this bit of verbose ness!

@epugh

epugh commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Poked around a bit at your "rd 2" changes, it all looks great to me....

@gerlowskija

Copy link
Copy Markdown
Contributor Author

Poked around a bit at your "rd 2" changes

Haha, hopefully "rd 2" isn't too obscure. "Round 2" abbreviated to fit in a commit-message title.

Thanks for taking the time to review!

@dsmiley

dsmiley commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Thanks for making progress here :-)

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants