Gaudi Mi wrote:
> I've got Ferret up and running for a Rails application and I'd like to
> be able to use autocomplete in my text search field so that as the user
> is typing each character of the search term, the index is queried for
> matching terms starting with those characters, and they are displayed in
> a list under the search box, like Google Suggest.
> 
> I have searched the Ferret API but I can't find a way to do for example:
> 
> Show all words in index that start with 's', then 'sp', then 'spa', etc.
> 
> Thanks for any assistance.

Is that what google does, though?  I thought the autocomplete was being 
filled with previous matching searches.  If that is the case then you 
might have to save all search queries to a db.  Have you seen the jQuery 
autocomplete plugin?  It's pretty good:

http://www.pengoworks.com/workshop/jquery/autocomplete.htm
-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to