AddSearch is an instant search for websites that gives results immediately, from the first keystroke. Implementing the AddSearch instant search onto your Drupal site is very easy, and takes only minutes.
First, find your Site key by following these instructions:
Use our Search Designer tool to configure the widget according to your needs and copy the installation script. Then paste the script into your website template to the place where you want the AddSearch field to appear. Here is an example of what the script snippet might look like:
The code you need to copy looks like the script below, where key is a numerical identifier field for your site:
<script> window.addsearch_settings = { "asw_01": { "placeholder": "search", "results_box_opening_direction_v2": "right", "show_search_suggestions": true, "search_suggestion_position": "right", "default_sortby": "date", "display_date": true, "display_meta_description": false, "display_result_image": true, "link_target": "_top", "hide_logo": true, "direction": "ltr", "analytics_enabled": false, "automatic_filter_results_by_site_language": true } } </script> <script src="https://cdn.addsearch.com/v4/addsearch-ui.min.js?key=xxxxxx&id=asw_01"></script>
We’re always happy to help with code or other questions you might have. Search our documentation, contact support, or connect with our sales team.