Table of Contents
Autocomplete / Autosuggest
Autocomplete functionality can be enabled, disabled or configured through settings in searches.ini. Each search type defined in your basic search type drop-down can be assigned its own custom autocomplete handler. The currently available handlers and configuration details can be found in the comments above the [Autocomplete] and [Autocomplete_Types] sections of searches.ini.
Building Custom Suggestions
Ideas for New Handlers
The current default autocomplete handler uses a fairly simple Solr lookup. Here are some more sophisticated approaches which may be worth pursuing:
The TermsComponent that is new in Solr 1.4 may be an appropriate Solr search handler to get suggestions from. But left hand truncation is still not possible with that.
On http://www.mattweber.org/2009/05/02/solr-autosuggest-with-termscomponent-and-jquery/ Matt Weber basically describes one way to set up autocomplete fields using TermComponent and JQuery.
On http://www.lucidimagination.com/blog/2009/09/08/auto-suggest-from-popular-queries-using-edgengrams/ Jay Hill outlines using EdgeNGrams to set up autocomplete against popular queries parsed from the Solr logs.