title: How to build an interactive search engine web interface using python
body: <p>I have build a static web interface for searching data from some tables in my PostgreSQL database. The query website consists of a simple textfield for entering the search term, the result website presents the results as a simple html table. The server side code for searching the PostgreSQL database and returning the results is written in python using psycopg2. </p>
  
  <p>Now I would like to add some interactive "Ajax features" to my search engine. When entering the search term I would like to be able to see a list of possible search terms like Google does it. On the results page, I would like to be able to sort the table showing the results.</p>
  
  <p>What would be the easiest/recommended way to implement these features for my search engine web site?</p>