Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SOLR-9303: Refactor CloudSolrClient for extensibility #51

Closed
wants to merge 1 commit into from
Closed

SOLR-9303: Refactor CloudSolrClient for extensibility #51

wants to merge 1 commit into from

Conversation

paulo-raca
Copy link

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 have refactored this method in 3 steps:

  • Finding the usable URLs
  • Checking if a node can be used for this request
  • Executing the request

CloudSolrClient.sendRequest() is currently written as one big chunk of code, making it difficult to customize it on a subclass.
mnilsson23 pushed a commit to mnilsson23/lucene-solr that referenced this pull request Aug 26, 2016
@paulo-raca
Copy link
Author

Nobody cares, closing it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant