Adding Autocomplete using elasticsearch

A commonly-requested feature in search applications is autocomplete or search suggestions. The basic idea is to give users instant feedback as they’re typing. Implementations of this feature can vary — sometimes the suggestions are based on popular queries (e.g., Google’s Autocomplete), other times they may be previews of results (e.g., Google Instant). The suggestions may be relatively simple, or they can be extremely complex, taking into account things like the user’s search history, generally popular queries, top results, trending topics, spelling mistakes, etc. Building the latter can consume the resources of a company the size of Google, but it’s relatively easy to add simple results-based autocomplete to an existing elasticsearch search application.


How I became a scientist (quote)

My mother made me a scientist without ever intending to.
Every other Jewish mother in Brooklyn would ask her child after school, “So? Did you learn anything today?”
But not my mother …
“Izzy,” she would say, “did you ask a good question today?”
That difference – asking good questions – made me become a scientist.
— Isidor Isaac Rabi, Nobel laureate

Found this gem on the 37 Signals blog