Hello, Perhaps the following will help:
asf-lucene/contrib$ ff HighFreq*java ./miscellaneous/src/java/org/apache/lucene/misc/HighFreqTerms.java Oits -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch ----- Original Message ---- > From: Ridzwan Aminuddin <r...@world-check.com> > To: java-user@lucene.apache.org > Sent: Thursday, May 21, 2009 2:22:08 AM > Subject: corpus vacabulary > > hi can someone point me in the direction of how i can get a string array of > the corpus/index vocabulary from the index using an indexreader? > > Currently this is what i am doing: > > IndexReader reader = IndexReader.open(indexdirectorypath); > termenumvar = reader.terms(); > > then i iterate through this termenum using the term() function while > termenum.next() still exists. > > Is there a more simple refined way to do this? Thanks > > Thanks. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org