Skip to content

Instantly share code, notes, and snippets.

@jraines
Created May 18, 2011 15:48
Show Gist options
  • Save jraines/978849 to your computer and use it in GitHub Desktop.
Save jraines/978849 to your computer and use it in GitHub Desktop.
Notes on "Enhanching the Search Box" - RailsConf 2011

###Autocomplete

  • the big lebowski
  • Prefix search
  • rails-3-jquery-autocomplete Gem
    • rails g autocomplete
    • javascript_include_tag "autocomplete-rails.js"
    • autocomplete :resource, :title #, :full => true
    • autocomplete_field_tag
    • Not really flexible over multiple models

Roll your own

  • JSONP -- needed for cross site functionality (widgets)
  • Investigate autocomplete with Redis

Optimizing

Autosuggest

  • the big lebowski
  • Edge N-grams
    • Solr supports
    • Does Sphinx?

In line content

  • Try a Bing search for "weather 90210" and you get a mini-forecast in the search box
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment