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 ma...@thomson.com on 2008/02/12 17:13:14 UTC

Getting the number of indexed fields in an index

Hi,

 

Does anyone have a code snippet which would allow me to ask my index how
many instances of a field are indexed?

 

 

Thanks,

 

Marc Dumontier
Manager, Software Development
Thomson Scientific (Canada)
1 Yonge Street, Suite 1801
Toronto, Ontario M5E 1W7

 

Direct +1 416 214 3448
Mobile +1 416 454 3147

 


Re: Getting the number of indexed fields in an index

Posted by Grant Ingersoll <gs...@apache.org>.
I think this is what you are asking: http://lucene.apache.org/java/2_3_0/api/core/org/apache/lucene/index/IndexReader.html#getFieldNames(org.apache.lucene.index.IndexReader.FieldOption)



On Feb 12, 2008, at 11:13 AM, <ma...@thomson.com> <marc.dumontier@thomson.com 
 > wrote:

> Hi,
>
>
>
> Does anyone have a code snippet which would allow me to ask my index  
> how
> many instances of a field are indexed?
>
>
>
>
>
> Thanks,
>
>
>
> Marc Dumontier
> Manager, Software Development
> Thomson Scientific (Canada)
> 1 Yonge Street, Suite 1801
> Toronto, Ontario M5E 1W7
>
>
>
> Direct +1 416 214 3448
> Mobile +1 416 454 3147
>
>
>




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