Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Search API Solr Dense Vector Field

Security covered Under active development 66 sites

Part of the Search ecosystem · 125 projects

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.

Ask your assistant about Search API Solr Dense Vector Field

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
10
Tracked since
Jun 2025
Latest release
8 months ago
Releases (12 mo)
1 ▼ from 9
Maintenance
Slowing

Release Timeline

Releases

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