ddev / ddev-drupal-solr

Drupal Apache Solr installation for DDEV (please consider ddev/ddev-solr first)
Apache License 2.0
9 stars 13 forks source link

search_api_solr shows "Outdated solr configuration" #15

Open tyler36 opened 1 year ago

tyler36 commented 1 year ago

Today I tried to setup a Solr server. After following the instructions and clicking save, I recieved 2 messages:

outdated_config

It states it can connect OK is the view table in Drupal 10. And the configured version and detected version appear to match:

Server Connection The Solr server could be reached.
Core Connection The Solr core could be accessed (latency: 10.037945343018 ms).
Configured Solr Version 8.11.2
Detected Solr Version 8.11.2

However, I am unfamiliar with Solr so not really sure if there are any "issues". We may need to update the configuration or, perhaps, add a note on the addon page to "ignore the warning".

Test

1.. Follow installation guide.

  1. Click "save"
  2. Check messages.

DDEV: 1.24.1 Drupal: 10.0.2

tyler36 commented 1 year ago

Also appears when install on Drupal 9.5.1

rfay commented 1 year ago

This complaint is @mkalkbrenner, the maintainer of search_api_solr, telling us that he doesn't want us to use the "Standard" solr connector any more, he wants us to use Solr Cloud.

Details in

But this add-on is specifically intended to use the "Standard" solr connector. I would dearly love to see something more approved by @mkalkbrenner but he hasn't responded in the problem issues. I think we can do it though. I'm just not good enough with solr to want to maintain something even more complex than this is.

However, I'm sure that with the two links above we could get solr cloud going in a new add-on.

zuuperman commented 1 year ago

The complaint is not related with Solr cloud. If you verify the code, it checks the version number in config.

Currently our version number is drupal-4.2.6-solr. While the SEARCH_API_SOLR_MIN_SCHEMA_VERSION const is currently set to 4.2.8.

rfay commented 1 year ago

How should one work around this then @zuuperman ? It doesn't seem to be anything but a warning message.

gitressa commented 1 year ago

I have created Error message - You are using outdated Solr configuration set.

gitressa commented 1 year ago

I got it working by updating the Solr config in DDEV, see this comment in the issue above for details.

If someone else can confirm that this method fixes the issue, I can add this step to the ddev-drupal9-solr README.

Thanks for your comment @zuuperman. I recalled it after I did a diff between the config files, and saw that the version in some config files is created with Search API Solr version 4.2.6. Since Search API Solr version 4.2.10 is the current release, it is the version included in newly created config files:

-<schema name="drupal-4.2.6-solr-8.x-0" version="1.6">
+<schema name="drupal-4.2.10-solr-8.x-0" version="1.6">

I have created https://github.com/mkalkbrenner/search_api_solr/pull/91 to hopefully make it clearer to the user what the problem and solution is.

rfay commented 1 year ago

Yay, thanks for your work on this. If you can improve the docs here that will be very welcome.

gitressa commented 1 year ago

Sure! I have created #27.