[Ferret-talk] Search Ferret Index for Use With Autocomplete / Options
Max Williams
toastkid.williams at gmail.com
Mon Jun 16 07:08:00 EDT 2008
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/.
More information about the Ferret-talk
mailing list