Skip to content
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

Merged

Conversation

gerlowskija
Copy link
Contributor

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:

  • I have reviewed the guidelines for How to Contribute and my code conforms to the standards described there to the best of my ability.
  • I have created a Jira issue and added the issue ID to my pull request title.
  • I have given Solr maintainers access to contribute to my PR branch. (optional but recommended)
  • I have developed this patch against the main branch.
  • I have run ./gradlew check.
  • I have added documentation for the Reference Guide

"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`).
Copy link
Contributor

Choose a reason for hiding this comment

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

need the leading "."?

Copy link
Contributor Author

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`).
Copy link
Contributor

Choose a reason for hiding this comment

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

Need the leading slash?

Copy link
Contributor Author

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...

Copy link
Contributor

@epugh epugh left a comment

Choose a reason for hiding this comment

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

LGTM

@gerlowskija gerlowskija merged commit e65caa1 into apache:branch_9x Apr 22, 2024
1 check passed
@gerlowskija gerlowskija deleted the SOLR-17066-ref-guide-docs-9x branch April 22, 2024 13:09
gerlowskija added a commit that referenced this pull request Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants