Install

Works with Drupal: ^9.3 || ^10.0

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 4.71 MB
MD5: 63348ee204256511d14dd7a2fa44ec5f
SHA-1: a4680d1f1acc50a4f73498c205d0c6eb9c623359
SHA-256: 6e01b97402f880ce87c6a0ca2af29cb214a7b228f65ba4dce7c70e53d937883a
Download zip 5.44 MB
MD5: 3b995d0a2f450666709cf5ab01b01a23
SHA-1: 002061b1160df5da5d13eea6f3a4c50f8008b157
SHA-256: 320df6697d999d4b0648d34f3856fdaefa6eeced3de12bf1030d5a12337c6f9a

Release notes

Search API Solr 4.3.x is a unified release that supports Drupal 9 and 10 in combination with a wide range of Solr versions from 3.6 to 9.x.

The big changes in 4.3.x compared to 4.2.x:

  • Solr 9 support
  • Usage of StandardTokenizer and storeOffsetsWithPositions for better search results and highlighting
  • Field Formatter Plugin to highlight search results in field and entity rendering
  • Solarium 6.3
  • Removal of all deprecated hooks, use Events instead, including Solarium Events

How to upgrade from 4.2.x or earlier

In order to support advanced highlighting and other features, the Solr schema provided by Search API Solr 4.3 got some fundamental changes, for example the usage of StandardTokenizer and storeOffsetsWithPositions.
When upgrading the module to 4.3.x from 4.2.x and earlier you still can read an existing Solr index and perform searches.
But if you write (index) data you'll run into errors like cannot change field "xyz" from index options=DOCS_AND_FREQS_AND_POSITIONS to inconsistent index options=DOCS_AND_FREQS_AND_POSITIONS_AND_OFFSETS.
There're different ways to deal with the required update. But all require Solr knowledge.
But the safest way is to delete the existing core (or collection in case of Solr Cloud) and to create a new core (or collection) using a new Solr config-set generated by Search API Solr 4.3.x and to re-index your data afterwards.
If you want to avoid downtime of your service, you can also create a new core (or collection), clone and adjust the Search API server and index configs and index all your data twice, while users can still search via the old core (or collection). Afterwards you can use Solr's rename or alias capabilities to switch both cores (or collections) and delete the cloned Search API server and index configs.

Changelog

Changes since 4.3.0:

Changes since 4.3.0-alpha1:

Changes since 4.2.12:

Created by: mkalkbrenner
Created on: 10 Nov 2023 at 18:38 UTC
Last updated: 10 Nov 2023 at 18:38 UTC
Bug fixes
Insecure
Insecure

Other releases