Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

Use Solr8 #478

Merged
merged 1 commit into from
Oct 20, 2020
Merged

Use Solr8 #478

merged 1 commit into from
Oct 20, 2020

Conversation

tpendragon
Copy link
Contributor

@tpendragon tpendragon commented Sep 28, 2020

Using Solr 8.4 in CI requires spinning up a separate Zookeeper instance so we can upload the solr configs with basic auth, so the ConfigSet is "trusted"

@tpendragon tpendragon marked this pull request as ready for review September 28, 2020 22:26
@tpendragon tpendragon force-pushed the solr8 branch 4 times, most recently from d2d5ba4 to 2da1e31 Compare October 12, 2020 21:21
Copy link
Member

@hackartisan hackartisan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks great

client.set_auth(c[:url], url.user, url.password)
provide "solr_json_writer.http_client", client
end
provide "solr.url", c[:url]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know provide. how does this work?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know, it's a traject config thing.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @tpendragon brought this to my attention. This works! But want to make you aware, of:

a) Instead of instantiating your own HTTPClient, you could have provided the auth values in the (somewhat under-documented) solr_writer.basic_auth_user and solr_writer.basic_auth_password traject config settings. traject/traject@2404a1f

b) I plan to fix the SolrJsonWriter you are using in traject here to be able to use basic auth from the URL straight, ie https://user:pass@host/etc. traject/traject#261 Should be in a traject release soon. Sorry it wasn't before now!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @jrochkind! We use this instead of the param because the version of traject in this app is older than that feature. We'll keep it in mind when we update though!

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh ok sorry for the unprompted unuseful advice! Upgrading should be very easy if you ever want to, there are very few backwards incompats in 3.0 that should have easy formulaic fixes, and should be no backwards incompats otherwise. But nothing wrong with what you're doing!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants