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). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Search API Sort Priority

690 sites Security covered Drupal 9–11
View on drupal.org

This module allows administrators to customize the sorting order of search results. It provides options to prioritize content based on factors like content type, user roles, media type, paragraph type, statistics counts, or file types. This enables more relevant search result ordering for specific site needs.

This module allows site admins to configure custom sort priority for Search API Results. There are a number of Search API processors that allow a configurable weights.

Search API Processors

Sort priority by Content Bundle

If you have a website with multiple Content Bundles and you would like to sort the results by assigning arbitrary priority to each bundle type.

This filter allows sorting of search results by weight assigned to each Content Bundle.

Example: Sort results in the following priority order:

  • News
  • Article
  • Basic Page

Sort Priority by Role

This processor allows Roles to be assigned weights, so allows the possibility to sort content by "Admin" role higher than "Editor".

Example: Sort results in the following Role priority order:

  • Admin
  • Editor
  • Member

Sort Priority by Media Bundle

If you have a website with multiple Media Bundles and you would like to sort the results by assigning arbitrary priority to each bundle type.

This filter allows sorting of search results by weight assigned to each Media Bundle.

Example: Sort results in the following priority order:

  • Flickr
  • Facebook
  • Instagram

Sort Priority by Paragraph Bundle

If you have a website with multiple Paragraph Bundles and you would like to sort the results by assigning arbitrary priority to each bundle type.

This filter allows sorting of search results by weight assigned to each Paragraph Bundle.

Example: Sort results in the following priority order:

  • Attached File
  • Inset text
  • Hero Image

Sort Priority by Statistics Count

If you have a website with Statistics Module and you would like to sort the results totalcount. This filter allows sorting of search results by Statistics totalcount per item.

Example: Sort results in the following priority order:

  • Most popular
  • Least popular

Sort Priority by File Mime

If you have a website with files and you would like to sort the results by file mime. This filter allows sorting of search results by file mime weight. You can also use the https://www.drupal.org/project/nice_filemime module to get a human friendly mime type instead of 'application/pdf'.

Example: Sort results in the following priority order:

  • PDF
  • Word
  • JPEG

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
1
Tracked since
Jan 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Core Release date
8.x-1.12 Stable 9–11 Jan 9, 2025