lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erick Erickson" <>
Subject Re: uniqueWords, and termDocs
Date Tue, 24 Jun 2008 13:26:03 GMT
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.


On Mon, Jun 23, 2008 at 6:03 PM, Cam Bazz <> 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.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message