title: getting a specific field values from lucene
body: <p>i just started learning how lucene works and am trying to implement it in a site i allready wrote with mysql.</p>
  
  <p>i have a field named <code>city</code> in my documents, and i want to get all the values for city from the documents.</p>
  
  <p>i have found this question ( which is exactly what i need ) <a href="https://stackoverflow.com/questions/619260/get-all-lucene-values-that-have-a-certain-fieldname">Get all lucene values that have a certain fieldName</a>
  but all they show there is a line of code, and as i said, i am not experienced enough to understand how to implement that.</p>
  
  <p>can someone please help me with some code to implement <code>IndexReader.Open(directory,true).Terms(new Term("city", String.Empty));</code></p>
  
  <p>what comes before / after that declaration ?</p>
  
  <p>i have tried this:</p>
  
  <pre><code>System.IO.DirectoryInfo directoryPath = new System.IO.DirectoryInfo(Server.MapPath("LuceneIndex"));
      Directory directory = FSDirectory.Open(directoryPath);
      Lucene.Net.Index.TermEnum iReader = IndexReader.Open(directory,true).Terms(new Term("city", String.Empty));
  </code></pre>
  
  <p>but how do i iterate over the results?</p>