-
Notifications
You must be signed in to change notification settings - Fork 692
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SOLR-17066: Deprecate SolrJ "core URLs" in ref-guide (9x) #2409
SOLR-17066: Deprecate SolrJ "core URLs" in ref-guide (9x) #2409
Conversation
This commit is for branch_9x only.
"Admin" (i.e. non-core) requests, or requests made to other indices using the client will fail. | ||
Because of these limitations, usage of this type of path is deprecated and will be removed in Solr 10. | ||
Users are encouraged to instead provide a "root" base URL when creating their client (see below), and specify the core using the `withDefaultCollection(String)` method available on the relevant `SolrClient` Builder object. | ||
. A URL pointing to the root Solr path (e.g. `http://hostname:8983/solr`). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need the leading "."?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, the leading '.' on L127 is used to identify the start of a new item in the list. See L121 above for another example.
I've intentionally omitted the '.' on lines 124-126 because I want each of those sentences to be included in the preceding list item.
@@ -136,7 +136,7 @@ If not an `IllegalArgumentException` will be thrown. | |||
|
|||
==== Base URLs of CloudSolrClient | |||
|
|||
It is also possible to specify base URLs for `CloudSolrClient`, but URLs are expected to point to the root Solr path (e.g., `\http://hostname:8983/solr`). | |||
It is also possible to specify base URLs for `CloudSolrClient`, but URLs must point to the root Solr path (e.g., `\http://hostname:8983/solr`). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need the leading slash?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes we do, the leading slash ensures that asciidoc renders the URL as unclick-able. (i.e. we want the URL to be formatted as code, not an actual link that a user would get value in clicking). See some of the other URLs in this page as examples...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This commit is for branch_9x only.
https://issues.apache.org/jira/browse/SOLR-17066
Description
SOLR-17066 has replaced all usage of SolrJ "core URLs" in Solr, and the "Configuration" section of the SolrJ ref-guide page was overhauled for 10.0 to accommodate this change. But no changes have yet been made to the 9.x ref-guide to signal that the "core URL" capability is deprecated and will be going away.
Solution
This PR makes some ref-guide changes to branch_9x, to signal this deprecation to users. It also steers users towards the more helpful
withDefaultCollection(String)
builder method.Tests
N/A - doc change only.
Checklist
Please review the following and check all that apply:
main
branch../gradlew check
.