Use myIndexReader.|*getFieldNames <http://www.netlikon.de/docs/javadoc-lucene/lucene_2_3/org/apache/lucene/index/IndexReader.html#getFieldNames%28org.apache.lucene.index.IndexReader.FieldOption%29>*(IndexReader.FieldOption <http://www.netlikon.de/docs/javadoc-lucene/lucene_2_3/org/apache/lucene/index/IndexReader.FieldOption.html> fldOption)|;
That should do.
The selection of FieldOption's is important, therefore you need to know what you really want to get.

Cheers,

Murat Yakici
Department of Computer & Information Sciences
University of Strathclyde
Glasgow, UK
-------------------------------------------
The University of Strathclyde is a charitable body, registered in Scotland, with registration number SC015263.



John Patterson wrote:
Hi,

How do I list all the fields in an index? Some documents do not contain all
fields.

Thanks,

John

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to