Install

Works with Drupal: ^10.3 || ^11

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 51.8 KB
MD5: fecb2abe47881ca83897c72ce34151ce
SHA-1: fea4b1ae9c3f7004ad6fcc923f7cc7e5b5105c54
SHA-256: d430f0c86bb4cb327a971ef6e3bd29c8b895eb6dbff516226cbf3025a6726df5
Download zip 71.16 KB
MD5: 15f26d0d6f339569aec72e979f5d7ae3
SHA-1: 9f07cb39900aa3d44d276dc28905fd14ec3c8866
SHA-256: b4194c6d3c492b015579d647dab30ec0b8687e053905951d689fefadbc49ffde

Release notes

The first stable release of the Solr VDB Provider: Apache Solr's dense vectors as a vector database for the AI module and AI Search. Documentation: project.pages.drupalcode.org/ai_vdb_provider_solr.

Requirements

  • Drupal 10.3 or 11.
  • AI 1.3 or later, the standalone AI Search module 1.3 or later, Search API 1.40 or later, and Key. The AI module's own AI Search submodule is deprecated and is removed in AI 1.6.0 (change record), so this release requires the standalone module.
  • Solr 9.1 or later. Scalar and binary quantization need Solr 10.

Installing

Until AI Search 1.3 has a stable release, allow its alpha in the same command:

composer require 'drupal/ai_search:^1.3@alpha' 'drupal/ai_vdb_provider_solr:^1.0'

Upgrading from 1.0.0-alpha1

  • Require the standalone AI Search as above, then run database updates. A post update stores an empty password key as NULL, as the validated settings expect.
  • No reindex is needed. New chunks get ids that include their Search API index, and existing chunks are still found and deleted by item and index.
  • The ai_vdb_provider_solr.client service is replaced by ai_vdb_provider_solr.client_factory.

Fixed

  • Grouped searches, which AI Search uses when it checks access, returned short pages when items had several chunks, and AI Search took a short page for the end of the results. A grouped search now raises topK until the page holds enough distinct items, or every matching chunk has been considered.
  • Several Search API indexes on one AI Search server saw each other's results, and clearing one index cleared all of them. Searches and deletes now stay within their index, and within one datasource when Search API removes a datasource. "Delete all items" keeps the collection and its vector field.
  • Every delete forced a hard commit in Solr. Deletes now use the "Commit within" window, as indexing does.
  • A filter on a negative number, or a date before 1970, failed the whole search. IN and NOT IN lists over 1,024 values failed too. Date conditions given as date strings, and BETWEEN with an open bound, did not work.
  • A very deep page of results asked Solr for a topK beyond its limit.

Changed

  • Each Solr connection gets its own client, built by SolrClientFactory. Requests give up connecting after at most five seconds, and errors carry Solr's full reasons.
  • The settings are validated (FullyValidatable config schema). The form refuses scalar and binary quantization on Solr older than 10, and warns when basic authentication is sent over plain http.
  • A value that a number or date field cannot hold raises an error naming the field, operator and value.
  • For a private CA, set $settings['http_client_config']['verify'] in settings.php.
  • The DigitalOcean guide limits the provider's Solr user to the requests it needs.

For developers

  • PreIndexEvent lets modules change the documents before they are sent to Solr, and PreSearchEvent lets them change the JSON request before each search. See Extending.
  • CI runs the kernel tests against Solr 9.1 and Solr 10, the latter without quantization, with scalar and with binary. phpstan runs at level 8.
Created by: tbcs
Created on: 5 Nov 2026 at 17:17 UTC
Last updated: 5 Nov 2026 at 17:17 UTC
Bug fixes
New features

Other releases