Configuring Search term autocomplete for SearchStax
Search term autocomplete enables site visitors to see suggested words or phrases as they type. Visitors can click a suggestion to run the search quickly.
The following are the methods to configure Search term autocomplete for SearchStax:
This method provides suggestions through content from specific indexed fields. This method does not require switching methods for migration. However, it is potentially expensive in terms of server utilization.
Sign in to your Drupal site with the
Administrator
role.
Configuring Search term autocomplete for SearchStax
Search term autocomplete enables site visitors to see suggested words or phrases as they type. Visitors can click a suggestion to run the search quickly.
The following are the methods to configure Search term autocomplete for SearchStax:
This method provides suggestions through content from specific indexed fields. This method does not require switching methods for migration. However, it is potentially expensive in terms of server utilization.
Sign in to your Drupal site with the
Administrator
role.
In the admin menu, click Extend.
Locate and select the Search API Solr Autocomplete checkbox and click Install.
Navigate to Configuration > Search and metadata > Search API.
On the Search API page, locate and click on the name of the SearchStax index you created.
Click the Autocomplete tab and enable the SearchStax index for your Search views.
In the Suggester plugins section, select the Retrieve from server checkbox.
In the Configure suggester dropdown, select the fields you want to base suggestions on.
Ensure that you limit the selection to a total of 10 to 12 fields. If you exceed the limit, the request may be rejected.
Select Dictionary-Driven and upload your line-delimited .txt file that contains your curated search terms. In addition, add any individual high-priority words using the Add Word field.
With this selection, the system ignores raw index data and only uses terms in your dictionary.
Select Data+Dictionary-Driven and upload your line-delimited .txt file that contains your curated search terms. In addition, add any individual high-priority words using the Add Word field.
With this selection, the system uses terms in your dictionary and also uses analytics data from recent searches to populate suggestions for supported tiers.
Set the number of suggestions and the character limit required to trigger them.
Click Publish.
Changes do not reflect on the live site until they are published.
Note
If you use the UI Kit method, configuration in SearchStax remains the same. The only difference is that you do not need to enable or configure the the Search API Solr Autocomplete sub-module in Drupal
Did not find what you were looking for?
If this content did not answer your questions, try searching or contacting our support team for further assistance.
In the admin menu, click Extend.
Locate and select the Search API Solr Autocomplete checkbox and click Install.
Navigate to Configuration > Search and metadata > Search API.
On the Search API page, locate and click on the name of the SearchStax index you created.
Click the Autocomplete tab and enable the SearchStax index for your Search views.
In the Suggester plugins section, select the Retrieve from server checkbox.
In the Configure suggester dropdown, select the fields you want to base suggestions on.
Ensure that you limit the selection to a total of 10 to 12 fields. If you exceed the limit, the request may be rejected.
Select Dictionary-Driven and upload your line-delimited .txt file that contains your curated search terms. In addition, add any individual high-priority words using the Add Word field.
With this selection, the system ignores raw index data and only uses terms in your dictionary.
Select Data+Dictionary-Driven and upload your line-delimited .txt file that contains your curated search terms. In addition, add any individual high-priority words using the Add Word field.
With this selection, the system uses terms in your dictionary and also uses analytics data from recent searches to populate suggestions for supported tiers.
Set the number of suggestions and the character limit required to trigger them.
Click Publish.
Changes do not reflect on the live site until they are published.
Note
If you use the UI Kit method, configuration in SearchStax remains the same. The only difference is that you do not need to enable or configure the the Search API Solr Autocomplete sub-module in Drupal
Did not find what you were looking for?
If this content did not answer your questions, try searching or contacting our support team for further assistance.