You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Paulo Costa (JIRA)" <ji...@apache.org> on 2016/07/13 13:44:20 UTC
[jira] [Created] (SOLR-9303) Refactor CloudSolrClient for
extensibility
Paulo Costa created SOLR-9303:
---------------------------------
Summary: Refactor CloudSolrClient for extensibility
Key: SOLR-9303
URL: https://issues.apache.org/jira/browse/SOLR-9303
Project: Solr
Issue Type: Improvement
Security Level: Public (Default Security Level. Issues are Public)
Components: SolrJ
Affects Versions: 6.0, 5.4
Reporter: Paulo Costa
Priority: Minor
Fix For: 6.1
I'm using a custom Solr plugins which adds extra constraints on which nodes I can access.
To respect these constraints, I needed to use a customized version of CloudSolrClient.
Unfortunately, CloudSolrClient.sendRequest() is currently written as one big chunk of code, breaking OO's SOLID principle and making it is impossible for me to customize it on a subclass.
I suggest we refactor this method in 3 steps:
- Finding the usable URLs
- Checking if a node can be used for this request
- Executing the request
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org