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-16563 DefaultCollectionSolrClient #1353

Closed
wants to merge 8 commits into from

Conversation

dsmiley
Copy link
Contributor

@dsmiley dsmiley commented Feb 12, 2023

@dsmiley dsmiley requested a review from epugh February 12, 2023 05:10
@dsmiley
Copy link
Contributor Author

dsmiley commented Feb 13, 2023

The initial impl was more of a "default" and hence the name DefaultCollectionSolrClient. But I felt it shouldn't be merely a default, it should be more of a chroot idea; an intentional limitation / scope. Just CollectionSolrClient would be better.

@epugh
Copy link
Contributor

epugh commented Feb 20, 2023

@dsmiley I tried using the DefaultCollectionSolrClient with out much success. Everywhere wanted a CloudSolrClient... Or, I didn't have setters in the testing infrastructure to take in a DefaultCollectionSolrClient.... So not sure here.

I am now wondering if having setDefaultCollection is that bad? Maybe it's okay to have it there. Or, rip the band-aid off and force the use of collectionName everywhere? At least, in our test infrastrutture?

@epugh
Copy link
Contributor

epugh commented Mar 20, 2023

I don't think right now I am going to push forward with this approach.... While it may have value in general, it didn't make it easier for me to migrate the tests away from changing the collection that the client was pointed at. Instead, I am working on updating the tests to not require/need the use of a solrClient.setDefaultCollection() method...

@dsmiley dsmiley closed this Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants