title: Lucene - Reading all field names that are stored
body: <p>I need to populate a dropdown with all field names in a lucene index and need to show those values. I was able to do it successfully using</p>
  
  <pre><code>var luceneIndexReader IndexReader.Open("D:\path_to\index_directory", true);
  var allAvailableFieldNames = luceneIndexReader.GetFieldNames(IndexReader.FieldOption.ALL);
  </code></pre>
  
  <p>Only problem is I need to include only 'Stored' fields in the drop down. This list includes all 'Indexed' and/or 'Stored' fields in it. Is there a way to query/search the indexes if a field has any 'stored' values and thereby filter out this list?</p>