Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Search API Term With Depth

21 sites Security covered Drupal 10–11
View on drupal.org

This module extends search API with functionality similar to the core "Term with Depth" Views filter and argument. It allows you to filter search results based on taxonomy terms and their position in the hierarchy, including terms at a specified depth.

This module brings Core's "Term with Depth" Views filter and argument (contextual filter) options to search_api-based views.

After the module is installed, when you add a Views filter or argument (contextual filter) for a taxonomy term field, you will see a select list of numbers and the following description:

The depth will match content tagged with terms in the hierarchy. For example, if you have the term "fruit" and a child term "apple", with a depth of 1 (or higher) then filtering for the term "fruit" will get content that are tagged with "apple" as well as "fruit". If negative, the reverse is true; searching for "apple" will also
pick up content tagged with "fruit" if depth is -1 (or lower).

Requirements

This module requires the following modules:

Installation

Install as you would normally install a contributed Drupal module. For further information, see https://www.drupal.org/docs/extending-drupal/installing-drupal-modules.

Configuration

1. Enable the module at Administration > Extend.
2. Clear caches.
3. Edit your search_api-based view and add a taxonomy term field as a filter or argument (contextual filter).
4. Select your desired depth.

Depends on

Dependencies of the latest stable release

  • search_api Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
Nov 2025
Latest release
8 months ago
Releases (12 mo)
3 ▲ from 0
Maintenance
Slowing

Release Timeline

Releases

Version Type Core Release date
1.0.1 Stable 10–11 Dec 4, 2025
1.0.0 Stable 10–11 Nov 14, 2025
1.0.x-dev Dev 10–11 Nov 14, 2025