Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
There are many references to a specific SolrClient subclass that could simply refer to SolrClient generally, or perhaps CloudSolrClient. This impedes switching/migrating to different SolrClient implementations. A similar example: we know it's a bad practice to declare a List as ArrayList even when it is one; the idea here with SolrClient is the same.
And furthermore, often times "var solrClient = ..." (or even "var solr = ...") is totally adequate in the Solr codebase within a method because the variable name adequately communicates the type. These sorts of changes should happen first, and then weaken type references in APIs.
Attachments
Attachments
Issue Links
- is required by
-
SOLR-16367 Umbrella: Migrate away from Apache HttpClient.
- Open
- relates to
-
SOLR-16498 Tests need the URL from a SolrClient; don't require legacy clients
- Open
- links to