Strips off the end of solrUrl any /solr when a legacy solrUrl like http://localhost:8983/solr is used, and warns those users. In the future we'll have urls ending with /api as well. @param solrUrl The user supplied url to Solr. @return a URL without any path, e.g. http://localhost:8983
(String solrUrl)
| 183 | * @return a URL without any path, e.g. {@code http://localhost:8983} |
| 184 | */ |
| 185 | public static String normalizeSolrUrl(String solrUrl) { |
| 186 | return normalizeSolrUrl(solrUrl, true); |
| 187 | } |
| 188 | |
| 189 | /** |
| 190 | * Strips off the end of solrUrl any /solr when a legacy solrUrl like http://localhost:8983/solr |