Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

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

Activity

Total releases
4
First release
Feb 2026
Latest release
4 months ago
Releases (12 mo)
4 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Release date
4.2.0-beta1 Pre-release Mar 11, 2026
4.2.0-alpha3 Pre-release Feb 20, 2026
4.2.0-alpha2 Pre-release Feb 18, 2026
4.2.0-alpha1 Pre-release Feb 18, 2026