Got a large website with more assets than you know what to do with? It's quick and easy to improve discoverability by building in autosuggest and custom behaviours with nothing more than jQuery and a spare search asset tucked away somewhere.
1. Create a search asset in a hidden directory, customise as necessary.
2. Add an empty div beneath the search field in your website's design.
3. Add the following script to your behaviours .js file (create one if you don't have one), replace 'search_field' with the ID of your search input field, replace 'pathtosuggest' with the URL of your new search asset, ensure 'queries_suggest_query' reflects the name of your search query:
$('#search_field').keyup(function(){ var suggestion = $(this).val(); if(suggestion.length > 3){ $('#suggestions').load('pathtosuggest?queries_suggestion_query=' + suggestion); } });
Style it up with CSS, limit the number of results per page, and the results will impress.