Alright, let me tell you about this thing I fiddled with recently, trying to make sense of this search index we had kicking around. It was built using Lucene, you know, that search library thing. The problem was, nobody really knew exactly what fields were actually indexed in there after a bunch of changes over time. It was a bit of a mess.

So, I needed to peek inside. I remembered this tool, called Luke. Heard about it ages ago, figured I’d give it a shot. First thing, had to actually find it and download the JAR file. Got that sorted.
Fired it up. Pointed it at the index directory on my machine. It opened up, looked kinda… old school, you know? Lots of tabs, lots of buttons. A bit much at first glance.
My main goal was simple: get a list of all the field names stored in this index. That’s it. I started clicking around. Found an ‘Overview’ tab, showed some basic numbers, document counts, stuff like that. Not what I needed.
Then I saw a ‘Documents’ tab. Okay, getting warmer. I could step through individual documents and see their fields. Useful, yeah, but I didn’t want to look at thousands of documents just to guess all the possible field names. I wanted a straight-up list.
Figuring out the listing part
I poked around some more. On the left side, there was this tree view thing showing the index structure. Aha! Found an item labeled ‘Fields’ right under the index name. Clicked on that. Bingo! There it was – a simple list of all the unique field names used across the whole index. Took me a minute, but got there.

- Found the index directory.
- Opened it with Luke.
- Clicked the ‘Fields’ node in the tree view.
- Got the list I needed. Simple as that, once I found it.
After getting the field list, I got curious. Wanted to see the actual terms inside one specific field. Went over to the ‘Terms’ tab this time. There was a dropdown menu where I could pick the field name I was interested in. Selected one, and boom, it showed me all the indexed terms for that field. Could even search for specific terms.
So yeah, that was my little adventure with Luke. It did exactly what I needed – helped me list the fields and terms inside that mystery index. Felt good to finally get a clear picture of what was actually in there. It wasn’t the prettiest tool, gotta say, but it worked. Saved me from writing some annoying code just to explore the index structure. Sometimes these old tools are still the right tool for the job, you know?