Re: getting a random doc from index
29 aug 2008 kl. 15.21 skrev Cam Bazz: hello, how could I possibly get a select a random document out of a document collection inside a lucene index? Something like public Document randomDoc() { int docNo = (int)(new java.util.Random().nextDouble() * indexReader.maxDoc()); return inde
getting a random doc from index
hello, how could I possibly get a select a random document out of a document collection inside a lucene index? best regards, -C.B.