title: How to generate non-prefix autocomplete suggestions?
body: <p>I  would like to add autocomplete to my tagging functionality.</p>
  
  <p>A couple of questions:</p>
  
  <ol>
  <li><p>How do I generate a list of autocomplete suggestions that includes matches in both the prefix and the middle of string? For example, if the user type "auto", the autocomplete suggestions should include terms such as "autocomplete" and  "build automation".</p></li>
  <li><p>I would like to allow multi-word tags and use comma (",") as a separator for tags. So when the use  hits the space bar, he is still typing out the same tag, but when he hits the comma key, he's starting a new tag. How do I do that?</p></li>
  </ol>
  
  <p>I am using Django, jQuery, MySQL, and Solr. What is the best way to achieve to implement the above 2 features?</p>