I’m working on a project for which I want to build a tag cloud by reading a Lucene index and pruning it down. I didn’t set up the Lucene engine, it was someone else in the team, now I just want to read its index. Do you how to do that in Java?
Share
what you need to look for is how to use IndexReader class, the .terms() method will give you back all the terms in the index.