[
https://issues.apache.org/jira/browse/SOLR-17318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18072232#comment-18072232
]
Jan Høydahl edited comment on SOLR-17318 at 4/9/26 10:29 AM:
-------------------------------------------------------------
Actual output with the attached PR is:
{code:java}
# Without --solr-url
$ bin/solr version
Client version: 11.0.0
# With --solr-url
$ bin/solr version --solr-url http://localhost:8983
Client version: 11.0.0
Server version: 10.1.0-SNAPSHOT
# The --version option
$ bin/solr --version
Apache Solr version 11.0.0{code}
Perhaps the PR should also modify the output of --version command to be
consistent with "Client version:"
was (Author: janhoy):
Actual output with the attached PR is:
{code:java}
# Without --solr-url
$ bin/solr version
Client version: 11.0.0
# With --solr-url
$ bin/solr version --solr-url http://localhost:8983
Client version: 11.0.0
Server version: 10.1.0-SNAPSHOT {code}
> bin/solr version should take report remote solr version when --solr-url
> provided
> --------------------------------------------------------------------------------
>
> Key: SOLR-17318
> URL: https://issues.apache.org/jira/browse/SOLR-17318
> Project: Solr
> Issue Type: Sub-task
> Components: cli
> Reporter: Eric Pugh
> Assignee: Jan Høydahl
> Priority: Minor
> Labels: newdev, pull-request-available
> Time Spent: 20m
> Remaining Estimate: 0h
>
> Sourced from
> [https://github.com/apache/solr/pull/1768#issuecomment-2142193420]
> Now that {{bin/solr}} supports a remote Solr cluster with {{{}--solr-url{}}}.
> We currently support {{solr version}} which prints the version from
> {{{}SolrVersion.java{}}}, i.e. the client version. However, if you run the
> tool towards a remote solr with a different version, you won't see that.
> So I wonder if {{solr --version}} should be the tool version, but {{solr
> version --solr-url http://foo.bar/solr/}} should call the backend to ask for
> its version.
>
> Maybe have solr/version ALSO report the version of Solr the CLI was built
> with.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]