[
https://issues.apache.org/jira/browse/SOLR-17489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17891352#comment-17891352
]
ASF subversion and git services commented on SOLR-17489:
--------------------------------------------------------
Commit 77e2ca88166ad250fe75375edc61aed150553e8a in solr's branch
refs/heads/branch_9x from Jan Høydahl
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=77e2ca88166 ]
SOLR-17489 Fix bad backport to 9x
* Use SolrCLI.getSolrClient(url) consistently in AssertTool
* Backport BATS test that we need
* Copy pattern from SolrCLI to handle hostContext in PostTool
Co-authored-by: Eric Pugh <[email protected]>
> CLI: Merge solr-url variants
> ----------------------------
>
> Key: SOLR-17489
> URL: https://issues.apache.org/jira/browse/SOLR-17489
> Project: Solr
> Issue Type: Sub-task
> Components: cli
> Reporter: Christos Malliaridis
> Assignee: Eric Pugh
> Priority: Major
> Labels: cli, pull-request-available
> Fix For: 9.8
>
> Time Spent: 1h 10m
> Remaining Estimate: 0h
>
> The CLI currently uses tool-specific options for providing a {{solr-url}}.
> This requires the user to know for each tool (first argument) which option
> needs to be used to provide the url.
> The user experience can be improved by merging these options and by providing
> a single shared option for the Solr URL and additional options for specific
> tools if more information is necessary (like collection names).
> *Migration Proposal*
> _{{base-url}} option_
> The {{base-url}} ({{\-\-base-url}} and {{\-b}}) option can be migrated to
> {{solr-url}} ({{\-\-solr-url}} and {{\-s}}) by removing the deprecated flag
> {{\-s}} for {{scrape-interval}} in 10.0.
> _{{solr-update-url}} option_
> The {{solr-update-url}} ({{\-\-solr-update-url}} and {{\-url}}) can be
> deprecated (9x) and replaced (10.0) with {{solr-url}} (new) and
> {{collection-name}} (already exists). In the current logic
> {{solr-update-url}} and {{collection-name}} are mutually exclusive and
> achieve the same result. If it is neccessary to provide a handler (like it is
> done with {{collection-name}} by extending {{/update}} to the URL}}, an
> additional option may be introduced called {{handler}} ({{\-\-handler}}) that
> supports the customization of the URL path suffx that determines the chosen
> handler.
> _{{solr-collection-url}} option_
> The {{solr-collection-url}} is the concatenation of the options {{solr-url}}
> ({{\-\-solr-url}} and {{\-s}}) and {{collection-name}} ({{\-\-name}} and
> {{\-c}}), which are already used in various tools. For this reason, we should
> deprecate (9.8) and remove (10.0) {{solr-collection-url}} by replacing it
> with {{solr-url}} and {{collection-name}}. Note that {{solr-collection-url}}
> and the combination of {{solr-url}} with {{collection-name}} are required
> options.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]