Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

This module enables semantic search in Drupal using Solr, allowing users to find relevant results with natural language queries by leveraging AI models to generate and search vector embeddings. It supports various AI providers and embedding models, with configurable vector dimensions and similarity functions. This facilitates more intelligent and context-aware search experiences within your Drupal site.

The ultimate goal of this module is to enable a Solr search to let users use a loose, natural language in search queries and still get semantically relevant results (see screenshots).

This module allows you to:

  • Use the core Drupal AI framework to allow provider selection. Any provider supported by Drupal AI can be used.
  • Select from any embedding model from selected AI provider
  • Make vector dimension configurable
  • Make similarity function configurable

You will need at a minimum Solr 9.6 or higher installed with Search API Solr 4.x, along with the Drupal AI module and a configured AI provider. On the DenseVector processor configuration, you can select which provider to use to generate the embeddings to store in the index.

At this point, you should be able to do vector based searches with Solr in Drupal. Note that there are some limitations with Solr that the module cannot currently address. It is best to store only one field as a dense vector, as that is all Solr can support at the moment.

While using any provider is supported via the AI module, this module was tested using OpenAI and Ollama provider modules using their respective embedding models. Changing providers on the processor is easy, but do note that updating existing Solr configuration requires regenerating and uploading your configuration set and reindexing. Not all embedding models produce the same size vectors, resizing the field requires these steps for Solr to reflect the new changes.

Activity

Total releases
10
First release
Jun 2025
Latest release
5 months ago
Releases (12 mo)
5
Maintenance
Active

Release Timeline

Releases

Version Type Release date
1.0.0-alpha9 Pre-release Jan 29, 2026
1.0.0-alpha8 Pre-release Oct 7, 2025
1.0.0-alpha7 Pre-release Oct 4, 2025
1.0.0-alpha6 Pre-release Sep 25, 2025
1.0.0-alpha5 Pre-release Sep 4, 2025
1.0.0-alpha4 Pre-release Jun 16, 2025
1.0.0-alpha3 Pre-release Jun 10, 2025
1.0.0-alpha2 Pre-release Jun 9, 2025
1.0.0-alpha1 Pre-release Jun 9, 2025
1.0.x-dev Dev Jun 9, 2025