title: Lucene.net and partial "starts with" phrase search
body: <p>I'm looking to build an auto-complete textbox over a large quantity of city names.  Search functionality is as follows: I want a "Starts with" search over a multi-word phrase.  For example, if user has typed in "chicago he", only locations such as "Chicago Heights" need to be returned.<br>
  I'm trying to use Lucene for this.  I'm having issues understanding how this needs to be implemented.</p>
  
  <p>I've tried what I think is the approach that should work:</p>
  
  <p>I've indexed locations with KeywordAnalyzer (I've tried both TOKENIZED and UN_TOKENIZED):</p>
  
  <pre><code>doc.Add(new Field("Name", data.ToLower(), Field.Store.YES, Field.Index.TOKENIZED, Field.TermVector.NO));
  </code></pre>
  
  <p>And search for them via the following (I've also tried a variety of other queries/analyzers/etc):</p>
  
  <pre><code>var luceneQuery = new BooleanQuery();
  var wildcardQuery = new WildcardQuery(new Term("Name", "chicago hei*"));
  luceneQuery.Add(wildcardQuery, BooleanClause.Occur.MUST);
  </code></pre>
  
  <p>I'm not getting any results.  Would appreciate any advice.</p>