title: Lucene "Ends with" query
body: <p>I am using lucene.net version 2.9.2.2 with .net4.  I am looking for
  "ends with" query along with path. where it should not tokenize and return TRUE if it
  occurs in between.</p>
  
  <p>Indexed paths:</p>
  
  <pre><code>C:\Users\vj\folder1\lucene\
  C:\Users\vj\folder1\lucene\folder1\folder2
  C:\Users\vj\folder2\lucene2\folder1\lucene\
  </code></pre>
  
  <p><strong>Index Code:</strong></p>
  
  <pre><code>new Field("PATH", strPath, Field.Store.YES, Field.Index.NOT_ANALYZED));
  //Standard Analyzer
  Analyzer analyzer = new StandardAnalyzer(Version.LUCENE_29);
  var writer = new IndexWriter(directory, analyzer, true, IndexWriter.MaxFieldLength.LIMITED);
  </code></pre>
  
  <p><strong>Search Code:</strong></p>
  
  <pre><code>Analyzer analyzer = new StandardAnalyzer(Version.LUCENE_29);
  var queryParser = new QueryParser(Version.LUCENE_29, "PATH", analyzer);
  var query = queryParser.Parse(strPath);
  </code></pre>
  
  <hr>
  
  <p>search query: <code>folder1\lucene\</code></p>
  
  <p>expected result:</p>
  
  <pre><code>C:\Users\vj\folder1\lucene\
  C:\Users\vj\folder2\lucene2\folder1\lucene\
  </code></pre>
  
  <p>How to get above result. I have seen many questions on SO regarding
  same. but none contains piece of working code.</p>