Isn't asking for unique words (actually tokens) equivalent to enumerating all the terms in a field?
I have no idea how to select a random word. Seems like you'd have to somehow use a TermEnum, but I don't think there's anything built in. Best Erick On Mon, Jun 23, 2008 at 6:03 PM, Cam Bazz <[EMAIL PROTECTED]> wrote: > Hello, > > I need to be able to select a random word out of all the words in my index. > how can I do this tru termDocs() ? > > Also, I need to get a list of unique words as well. Is there a way to ask > this to lucene? > > Best Regards, > -C.B. >