Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Search Overrides

Security covered Under active development 469 sites

Part of the Search ecosystem · 126 projects

This module allows administrators to manually control search results for Search API Solr. You can specify which content should appear at the top of search results or be excluded entirely for specific search terms. It also offers an option to manage these overrides directly within the node edit form.

This module provides a method for users with the necessary permissions to manually override the results being returned by Search API Solr. They will be able to choose a specific search term, and pick which nodes should be at the top, and also choose to exclude nodes so they will not be shown in the results.

New Features in the 2.x Branch

  • Edit in the node form - A big new feature is the ability to manage overrides for a node within the node edit form, as shown in the bottom screen capture to the right
  • Promote more than nodes - you now have the option to have the autocomplete query Solr instead of just node titles. That means any content in your index can be promoted, not just nodes

Similar Modules

This module has overlap with Search API Best Bets in its use of Solr's elevateIds and excludeIds. That module only allows individually promoting or excluding nodes, and so doesn't provide a way for an editor to specify the order if more than one node has been promoted.

Requirements

Also note that support for the elevateIds and excludeIds parameters was introduced in Solr 4.7, so this module won't work for environments with very old Solr installs.

Installation

Once the module is installed, users with access can go in the toolbar to Configuration > Search > Search Overrides and begin creating as many overrides as needed. If you update the settings with your search path and query parameter, it will provide links for each override to view the results both modified and unmodified.

Also note that using this module will cause Solr to ignore the contents of an elevate.xml file for the core, if one is available.

Demo

Drupal 9–11

Ask your assistant about Search Overrides

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

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
Jun 2023
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Release Timeline

Releases

Version Type Core PHP Release date
2.1.0 Stable 9–11 Jun 3, 2024
2.1.0-rc2 Pre-release 8–10 Sep 29, 2023
2.1.0-rc1 Pre-release 8–10 Jun 20, 2023