lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Murat Yakici <murat.yak...@cis.strath.ac.uk>
Subject Re: Listing fields in an index
Date Tue, 10 Feb 2009 15:27:47 GMT
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


Mime
View raw message