title: WildcardQuery Lucene does not work properly
body: <p>I am trying to use WildCardQuery:</p>
  
  <pre><code>    IndexSearcher indexSearcher = new IndexSearcher(ireader);
      Term term = new Term("phrase", QueryParser.escape(partOfPhrase) + "*");
      WildcardQuery wildcardQuery = new WildcardQuery(term);
      LOG.debug(partOfPhrase);
      Sort sort = new Sort(new SortField("freq", SortField.Type.LONG,true));
      ScoreDoc[] hits = indexSearcher.search(wildcardQuery, null, 10, sort).scoreDocs;
  </code></pre>
  
  <p>But when I insert "san " (without quotes), I want to get something like:
  "san diego", "san antonio" etc. But I am getting not only these results but also "sandals" (it must to be space after san), or juelz santana (I want to find sentences which start with san). How can I fix this issue?</p>
  
  <p><strong>EDIT</strong>
  Also, if I insert "san d", I have no results.</p>