You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Murat Yakici <mu...@cis.strath.ac.uk> on 2009/02/10 16:27:47 UTC

Re: Listing fields in an index

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-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org