Install

Works with Drupal: ^8.8 || ^9

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 3.08 MB
MD5: ae06d992a9b8ce3fa3015eeabea93026
SHA-1: 401c7acbde3bbf45c13ac654ba4a339a478a54fe
SHA-256: 4c71d1b432ca5ae78da81dab8f2ca23235e4833802d4235e5d4f35011e078074
Download zip 3.62 MB
MD5: cbb171fe4c07736f025c601ab3964f75
SHA-1: 82a933beaa164c80094dcc24ef24874484b6059f
SHA-256: 2a6ddef5ff5b5f88949f79ace7a76e22e0815d2576123e733cc8a08d620baeb0

Release notes

Search API Solr 4.1.x is the unified release that supports Drupal 8 and 9 and a wide range of Solr versions.

The big changes in 4.x compared to 3.x:

  • semantic versioning
  • compatible to Drupal 8.8, 8.9 and 9.x
  • We upgraded to solarium 6.0 and therefore require at least PHP 7.2
  • basic support for older Solr versions between 4.5 and 5.5 via the new search_api_solr_legacy sub-module
  • jump-start Solr config-sets you could simply copy and deploy on you're Solr sever to create a core or a collection

Like Search API Solr Search 8.x-3.x, it supports upgrade paths from any previous 8.x version including Search API Solr Multilingual 8.x-1.x!

BTW there's a new user contributed documentation: https://www.drupal.org/docs/8/modules/search-api-solr

The big changes in 3.x compared to 2.x:

  • We collapsed the features of the Standard Backend, both Multilingual Backends and the "Any Schema" Backend into a one new unified Solr Backend. There's a migration path :-)
  • Mulitisite is back! Select "Clone for Multisite" in an Index' operations, save the Clone Form, export the cloned index config (and probably the server config), deploy the config to a different site, configure a search View as usual, enjoy! ;-)
  • Spellchecking is now configurable like Suggesters. Use the standard filed configuration to decide which fields should feed the spellcheck catalog
  • We now distinguish between NGram and EdgeNGram. Both field types are fully configurable via Drupal config files.
  • Solr 7/8 compatible implementation of index time boosting of terms and documents
  • Configurable MoreLikeThis parameters per index
  • Support for Solr Cloud exclusive features

The big changes in 3.x compared to 1.x:

Important: Since solarium 5.0 supports Solr v2 API, the connector settings need to be adjusted! The "path" must not end with "/solr" but "/" without "solr" because that is the v1 API endpoint!
Your existing configs will be adjusted automatically via an update hook implementation. But if you've overwritten the connection settings (for example in settings.php) you must adjust the path by yourself!

Important: You need to update your Solr config files if you update from any previous version! After deploying the config set to your Solr server(s) you need to re-index your content!

Important: You might need to adjust the solrcore.properties file to your needs. If you get errors about missing classes you should adjust the solr.install.dir.

PHP 7.2 or newer required!

Due to the requirements of the libraries we use we can't support PHP 5, PHP 7.0 or PHP 7.1 anymore! These versions reached EOL anyway.

The recommended way to install this module properly is the usage of composer!

To install the module including its dependencies simply change into your drupal directory and run composer require drupal/search_api_solr:^4.1.
But if you just download the module it won't work because the required external libraries are not part of this package!

The Drupal 8 symfony/event-dispatcher issue!

See #3085196: How to upgrade to solarium 5.1.x, 5.2.x or 6.0.x for details. But with the Search API Solr 4.1.0 release we solved that issue! So it doesn't exist anymore for new installations.
If you applied one of the workarounds before, don't forget to revert them!
Drupal 8 users should for example update like this to revert to the original event-dispatcher:
composer require symfony/event-dispatcher:~3.4.0 solarium/solarium:^6.0 search_api_solr:^4.1

Upgrade path for Search API Multilingual Solr Search 8.x-1.x

You should NOT upgrade to 8.x-2.x or 8.x-3.x first! Just directly upgrade to 4.x.

Changes since 4.1.6

Changes since 4.1.5

Changes since 4.1.4

Changes since 4.1.3

Changes since 4.1.2

Changes since 4.1.1

Changes since 4.1.0

Changes since 4.0.1

Changes since 4.0.0

Changes since 4.0.0-beta2

Changes since 4.0.0-beta1

Changes since 4.0.0-alpha1

Changes since 8.x-3.9

Created by: mkalkbrenner
Created on: 14 Oct 2020 at 06:29 UTC
Last updated: 2 Nov 2020 at 14:12 UTC
Bug fixes
Insecure
Insecure
Unsupported

Other releases