title: How to get records starting with a specific letter in Lucene
body: <p>I have a cached name list that I store to the Lucene data structure. I want to get people whose name starts with a specific letter.</p>
  
  <p>for example:
  My list is below. I store them into the <code>name</code> field.</p>
  
  <pre><code>foo bar
  blabla foo
  foo2 bar
  test data
  </code></pre>
  
  <p>when I search with <code>name:f*</code> it returns <code>foo bar</code>, <code>foo2 bar</code> and <code>blabla foo</code>. It checks every words in the field and gets <code>blabla foo</code> too. But I need to get names start with <code>f</code>, the very first letter of it is <code>f</code>, not records contain words starting with <code>f</code> even if they are at the end of the sentence. </p>
  
  <p>Any idea ? </p>