Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Search API PinByPhrase

Security covered Under active development 2 sites

Part of the Search ecosystem · 125 projects

This module allows administrators to configure specific content nodes to appear at the top of search results when a user's search query exactly matches a defined phrase and language. It works by processing search results after they have been extracted and "pinning" matching content to the top.

Pins a node to the top of the results when search query matches expected phrase and node id and specified language.
None to many configurable sets of phrases with their corresponding node id and language code.

Features

Clients often want a specific result at the top of their search results for a specific search phrase. This module provides a configuration form for this and an event subscriber that processes post extracted results and pins matches so that they show up on the top of results.

Post-Installation

Install as a normal module, then browse to the extend section, search for the name of this module then click the gear icon to go to the configuration page. Follow the instructions in this form. Expected that this works on a "content" index.

Additional Requirements

Search API solr (required)

TBD

Similar projects

Search API Exact Match Boost - Similar but does not target pinning of specific node ids matching a phrase.

Supporting this Module

joseph.olstad

Community Documentation

README.md

Drupal 10–11

Ask your assistant about Search API PinByPhrase

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
4
Tracked since
Nov 2025
Latest release
10 months ago
Releases (12 mo)
4 ▲ from 0
Maintenance
Slowing

Release Timeline

Releases

Version Type Core PHP Release date
1.0.0 Stable 10–11 Nov 18, 2025
1.0.0-alpha2 Pre-release 10–11 Nov 18, 2025
1.0.0-alpha1 Pre-release 10–11 Nov 17, 2025
1.0.x-dev Dev 10–11 Nov 17, 2025