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).

Autocomplete Search Suggestions

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

This module provides autocomplete search suggestions based on content titles, manually added priority suggestions, and actual user searches. It intelligently tokenizes and breaks down search terms into ngrams to generate relevant suggestions and offers various configuration options to tune the results for optimal performance.

This module will provide autocomplete search suggestions.

The module is compatible with standard Drupal search, search views and Apache SOLR, but not reliant on any of them.

Auto-complete suggestions are created from 3 sources:

  1. Titles of selected content types. This provides a starting point for suggestions and requires significant content to generate enough autocomplete suggestions.
    1. Strings are tokenized, (lowercased, stopwords removed, short/long words removed and extra spaces removed).
    2. Strings are broken into different length ngrams.
    3. The score of each ngram is tallied and used for ordering.
  2. Priority suggestions added via the admin interface. These suggestions have the highest score and allow the admin to create a set of useful suggestions where the initial set created doesn't proved enough quality auto-complete suggestions.
    1. Strings are tokenized, (lowercased, stopwords removed, short/long words removed and extra spaces removed).
    2. Strings are broken into different length ngrams.
    3. Priority ngrams start with the highest score.
  3. Surfer searches. These suggestions provide an organic way to create successful autocomplete suggestions.
    1. Surfer searches are sourced when the search is submitted.
    2. Strings are tokenized, (lowercased, stopwords removed, short/long words removed and extra spaces removed).
    3. If the tokenized strings exists as an ngram then the score is increased.
    4. If the tokeized string doesn't exist then it is scored and generated ngrams added.

Tuning your autocomplete suggestions:

Since the number of initial suggestions are related to the amount of content your site has. The settings might have to be tweaked to get best results. Sites with large amounts of content can generate an excess of suggestions. Since much of the success of autocomplete relies on response time. The number of rows in the database can become unmanagable. In sites with little content priority suggestions might have to be added to achieve the desired results.

  • Minimum Characters - Initially this is set at 4. Increasing this will reduce the number of suggestions dramatically.
  • Maximum Characters in a Suggestion - Initially this is set to 45. Increasing this will increase the number of suggestions but is more applicable to the size of your text field than tuning the number of suggestions.
  • Minimum Words in a Suggestion - Initially this is set to 1. Increasing this will reduce the number of suggestions dramatically.
  • Maximum Words in a Suggestion - Initially this is set to 6. Decreasing this will reduce the number of suggestions dramatically.
  • Maximum Suggestions Returned - Initially set to 20. Less autocomplete suggestions will decrease response time, more will increase response time.
  • Stopwords - Adding irrelevant/undesirable terms will reduce undesirable suggestions.
  • Priority Suggestions - Priority suggestions receive the highest score and allow the admin to create desirable auto-complete suggestions.
  • Exceptions - Exceptions allow non-alphabetic strings to be used in suggestions, (4.2.0-beta* only).

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
7
Tracked since
Oct 2024
Latest release
1 month ago
Releases (12 mo)
5 ▲ from 2
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
4.1.3 Stable 10–11 Jul 29, 2026
4.2.0-beta1 Pre-release 11 Mar 11, 2026
4.2.0-alpha3 Pre-release 11 Feb 20, 2026
4.2.0-alpha2 Pre-release 11 Feb 18, 2026
4.2.0-alpha1 Pre-release Feb 18, 2026
4.1.2 Stable 10–11 Oct 27, 2024
4.1.1 Stable 9–11 Oct 13, 2024