Simple - use lucidgaze available at http://www.lucidimagination.com/Downloads/LucidGaze-for-Lucene
With lucidgaze you could analyze
- Read/write stats on index utilization, distribution and throughput
- Query efficiency stats - show how effectively user input is analyzed and decomposed for processing by the index
- Mapping of tokenizers, token-streams and analyzers - makes transparent how text is processed and indexed
So, we went ahead and downloaded the api but were unable to find any example program or source code. After some amount of tinkering around we were finally able to figure out how to use it.
You could get the code here : http://ai-cafe.blogspot.com/2009/09/lucid-gaze-tough-nut.html