Getting the number of indexed fields in an index

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Getting the number of indexed fields in an index

marc.dumontier
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

 

Reply | Threaded
Open this post in threaded view
|

Re: Getting the number of indexed fields in an index

Grant Ingersoll-2
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, <[hidden email]> <[hidden email]
 > 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: [hidden email]
For additional commands, e-mail: [hidden email]