Skip to content

Commit

Permalink
Add back /solr in PostTool
Browse files Browse the repository at this point in the history
  • Loading branch information
janhoy committed Oct 18, 2024
1 parent b931756 commit e80504a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion solr/core/src/java/org/apache/solr/cli/PostTool.java
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,8 @@ public void runImpl(CommandLine cli) throws Exception {
throw new IllegalArgumentException(
"Must specify -c / --name parameter with --solr-url to post documents.");
}
String url = SolrCLI.normalizeSolrUrl(cli) + "/" + cli.getOptionValue("name") + "/update";
String url =
SolrCLI.normalizeSolrUrl(cli) + "/solr/" + cli.getOptionValue("name") + "/update";
solrUpdateUrl = new URI(url);

} else if (cli.hasOption("solr-update-url")) {
Expand Down

0 comments on commit e80504a

Please sign in to comment.