This project is not covered by Drupal’s security advisory policy.
Search API Relevance will show what people search for on a Search API site and which searches find nothing, and give editors a safe way to improve the results: synonyms, boosts and pins, each replayed against real logged queries before it is approved. An optional AI submodule proposes changes but never applies them.
Status: No release yet. The module is under active development; the first beta follows once its automated test suite and an independent review pass.
This module is developed with AI assistance. The maintainer reviews and tests every release before publishing it.
Planned for 1.0
None of this is released yet. The first release will provide:
Search analytics
- A log of Search API queries, recorded through Search API's events: the normalized keys, the index, the result count, whether it found nothing, the page and the time. No IP addresses or user IDs are stored.
- Configurable sampling and retention, with old entries purged by cron.
- Reports of top queries, zero-result queries and trends, and of low-click or abandoned queries when the optional, privacy-safe click tracking is on.
Tuning
- Synonyms, kept as configuration and applied as query-time expansion by a Search API processor, so they work on every backend.
- Boosts and pins for specific queries.
- Replay before approval: the top logged queries run with and without a proposed change, showing how the result counts and top results differ.
Optional AI submodule
- Proposals of synonyms or boosts for zero-result queries, made through the AI module with any provider it supports.
- A review queue for those proposals. Nothing is applied without a person's approval.
Requirements
Planned for the first release:
- Drupal 11.3 or later, or Drupal 12.
- PHP 8.3 or later.
- Search API.
- For the AI submodule: the AI module and a configured provider.
Installation
Installation instructions arrive with the first release. For the first beta, the commands will be:
composer require 'drupal/search_api_relevance:^1.0@beta' drush en search_api_relevance
Configuration and permissions
Not final yet. This section will list each settings page and each permission, by its real label, with the first release.
Similar projects
Checked on drupal.org in November 2026.
- Search API Synonym manages synonyms by hand. Choose it if a hand-kept synonym list is all you need.
- Search API Stats collects basic statistics on Search API searches. Its latest release is from 2024.
- Search Log has only a development release, for Drupal 8 and 9, and is marked unsupported.
Support and maintenance
Report bugs, ask for features and comment on the planned scope in the issue queue. Each release will have notes describing what changed.
This project is not covered by Drupal's security advisory policy. Until it is, security issues are handled in the public issue queue and fixed in ordinary releases.
A read-only mirror is on GitHub at DanePete/drupal-search-api-relevance. It will mirror the drupal.org repository once code is published there; development and issues stay on drupal.org.
Maintainer
Created and maintained by deadnorth (Dead North).
Project information
- Project categories: Administration tools, Artificial Intelligence (AI), Site search
- Ecosystem: Search API
- Created by deadnorth on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
