suggestion
244 sites
Security covered
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:
- Titles of selected content types. This provides a starting point for suggestions and requires significant content to generate enough autocomplete suggestions.
- Strings are tokenized, (lowercased, stopwords removed, short/long words removed and extra spaces removed).
- Strings are broken into different length ngrams.
- The score of each ngram is tallied and used for ordering.
- 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.
- Strings are tokenized, (lowercased, stopwords removed, short/long words removed and extra spaces removed).
- Strings are broken into different length ngrams.
- Priority ngrams start with the highest score.
- Surfer searches. These suggestions provide an organic way to create successful autocomplete suggestions.
- Surfer searches are sourced when the search is submitted.
- Strings are tokenized, (lowercased, stopwords removed, short/long words removed and extra spaces removed).
- If the tokenized strings exists as an ngram then the score is increased.
- 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).