title: lucene.net phonetic filter
body: <p>I am trying to store text data to lucene.</p>
  
  <p>The search should be with phonetic!</p>
  
  <p>Where should I add a phonetic filter?</p>
  
  <pre><code>Lucene.Net.Store.Directory dir =
  FSDirectory.Open(new DirectoryInfo(Application.StartupPath + "\\Index"));
  
  IndexReader indexReader = IndexReader.Open(dir, true);
  Searcher indexSearch = new IndexSearcher(indexReader);
  //IndexReader indexReader = IndexReader.Open(dir, true);
  //Searcher indexSearch = new IndexSearcher(indexReader);
  Analyzer analyzer = new Lucene.Net.Analysis.De.GermanAnalyzer();
  
  //Analyzer analyzer = new StandardAnalyzer(Lucene.Net.Util.Version.LUCENE_29);
  var queryParser = new QueryParser(Lucene.Net.Util.Version.LUCENE_29,"content", analyzer);
  var query = queryParser.Parse(textBox1.Text+"~0.8");
  
  Console.WriteLine("Searching for: " + query.ToString());
  TopDocs resultDocs = indexSearch.Search(query, indexReader.MaxDoc());
  
  Console.WriteLine("Results Found: " + resultDocs.TotalHits)
  </code></pre>
  
  <p>Regards, Ingo</p>