-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Pantheon Recipe: Solr Version Handling #15
Comments
We're seeing the same thing at our shop and haven't figured it out yet. We are working on it by adding a
to override the default 3.x.x solr version thats part of the pantheon recipe. |
I did something similar to this, just adding a service that uses the Solr 8 image and adjusting the app server's ENV vars to utilize that. In the end it ended up being a moot point. Pantheon wants you to "have a chat with an account rep" in order to use Solr 8--not worth my time. I'll be using Solr 3 for the foreseeable future. |
@kerasai I understand where you are coming from. However, we (@fyaconiello and I) are on the opposite side. Solr 8 is up and running on Pantheon for our recently migrated D9 site. So everything works great on Pantheon, it's the local environment that's having issues. Was your attempt with adding the service and adjusting the ENV vars successful? |
Maybe this will help someone who's also having this issue. I spent a couple of days banging my head. We also needed to use SOLR 8 for some autocomplete suggestions on our project and it wasn't working with the older SOLR. So, I added a separate SOLR 8 server to our
We use the default config from the Then I proceeded to create the "production" ( Then, I create the index as part of the production one and setup as needed. Now, by default this won't work, it will throw some errors when using version 8 from However, I made these changes in my
This basically puts some environment variables the Pantheon module requires and changes the server for the index locally. After this I got it to work for both our local environments and the pantheon workflow. |
First I just tried to get @AleMadLei 's post above got me in the right direction. But I needed more: Step 1) .lando.yml
Step 2) Create a new Search API ServerStep 3) settings.php
|
As an FYI, I did some poking around here... I implemented the default solr:8.0 image and putzed around with Enviornment Variables and traced some requirements through the Search API Pantheon V8.0.1. Some requirements that we will need to fulfill are the following: We must add the following Environment variables to appserver: But that isn't quite enough because the Pantheon custom endpoints expect the following:
If you fail these checks (say you make PATH=solr and CORE=new_core) you will end up with something like this... As an example, pantheon's Environment variables look like this:
An acceptable outcome may look like this
As far as I know I haven't been able to change the default path for the solr implementation from something like index:8983/solr. The /solr part seems to be hard coded into the docker container somewhere... It would be much easier to patch the (what I feel) are stupid checks in the pantheon solrarium guzzle client located at https://github.com/pantheon-systems/search_api_pantheon/blob/8.0.1/src/Services/PantheonGuzzle.php#L155-L162 I hope this gets some traction toward this feature... Until then... using workarounds like ☝️ AleMadLei's or Dalin's is going to be the way to go. The other thing I would add... is that if you don't know what config got posted to Pantheon the first time, you can go grab the config.zip from a url like |
@generalredneck nice sleuthing here. we ran into similar issues while trying to build out support for solr8. i think the paths to least resistance here are:
|
* #15: Initial solr8 setup. * #15: Portforwarding for solr8. * Correct volume for M1 MariaDB data directory. * #15: Add jetty rewrites to get Solr paths operating correctly for Solr8. * #15: Add tests and documentation for setting Solr version. * #15: Feed the linter. * Update pr-wordpress-tests.yml * #15: Address PR comments to update docs and make sure Solr8 config doesn't bleed in to Solr3. * #15: Don't hardcode the index service into the main builder.js. * #15: Add a test to D9 testing out the Jetty redirects. * release v0.8.0 * #15: Correct referencing of Solr tag. * release v0.8.1 * #15: Additional tests for Solr 8 env vars.
Ok, finally integrated in solr8 compatibility that should get most folks up-and-running. I think the big to-do here is getting custom schema uploading working (#166) but folks using the default schema provided by the configset from This won't get packaged with Lando until v3.15.0+, but if you want to custom-install the plugin you can use these instructions or run it from source by cloning this repo to |
For Drupal 9 sites, Pantheon allows for Solr 8 by defining it in the
pantheon.yml
file.This is a feature request to make Lando consider the Solr version as defined in the
pantheon.yml
file when building/rebuilding the containers for the project.See Pantheon YAML Configuration Files and Using Solr 8 on Drupal 9.
The text was updated successfully, but these errors were encountered: