Re: Problems about using Lucene to generate tag cloud..

2008-04-06 Thread Marvin Humphrey
On Apr 1, 2008, at 2:57 PM, Daniel Noll wrote: On Tuesday 01 April 2008 18:51:55 Dominique Béjean wrote: IndexReader reader = IndexReader.open(temp_index); TermEnum terms = reader.terms(); while (terms.next()) { String field = terms.term().field(); Gotcha: aft

Re: Problems about using Lucene to generate tag cloud..

2008-04-06 Thread wuqi
Very useful.. Thank you! - Original Message - From: "John Wang" <[EMAIL PROTECTED]> To: Sent: Saturday, April 05, 2008 8:35 AM Subject: Re: Problems about using Lucene to generate tag cloud.. check out http://www.browseengine.com tag cloud impl on lucene is avail. -J

Re: Problems about using Lucene to generate tag cloud..

2008-04-04 Thread John Wang
check out http://www.browseengine.com tag cloud impl on lucene is avail. -John On Wed, Apr 2, 2008 at 4:12 PM, Daniel Noll <[EMAIL PROTECTED]> wrote: > On Thursday 03 April 2008 08:08:09 Dominique Béjean wrote: > > Hum, it looks like it is not true. > > Use a do-while loop make the first terms.t

Re: Problems about using Lucene to generate tag cloud..

2008-04-02 Thread Daniel Noll
On Thursday 03 April 2008 08:08:09 Dominique Béjean wrote: > Hum, it looks like it is not true. > Use a do-while loop make the first terms.term().field() generate a null > pointer exception. Depends which terms method you use. TermEnum terms = reader.terms(); System.out.println(terms.term

RE: Problems about using Lucene to generate tag cloud..

2008-04-02 Thread Dominique Béjean
using Lucene to generate tag cloud.. On Tuesday 01 April 2008 18:51:55 Dominique Béjean wrote: > IndexReader reader = IndexReader.open(temp_index); > TermEnum terms = reader.terms(); > > while (terms.next()) { > String field = terms.term().fie

Re: Problems about using Lucene to generate tag cloud..

2008-04-01 Thread Daniel Noll
On Tuesday 01 April 2008 18:51:55 Dominique Béjean wrote: > IndexReader reader = IndexReader.open(temp_index); > TermEnum terms = reader.terms(); > > while (terms.next()) { > String field = terms.term().field(); Gotcha: after calling terms() it's already pointin

Re: Problems about using Lucene to generate tag cloud..

2008-04-01 Thread wuqi
01, 2008 8:30 PM Subject: RE: Problems about using Lucene to generate tag cloud.. On www.crossfeeds.com, I use this method in order to update hourly a tag cloud based on the title of 20.000 RSS articles (RSS published during the last 24 hours). It takes 1 minute. -Message d'origine- De

RE: Problems about using Lucene to generate tag cloud..

2008-04-01 Thread Dominique Béjean
-user@lucene.apache.org Objet : Re: Problems about using Lucene to generate tag cloud.. so build a index for the dynamically generated docucements set ,and then try to find frequency for each terms in this index... not sure it's fast enoug.but it's worth to have a try... Than

Re: Problems about using Lucene to generate tag cloud..

2008-04-01 Thread wuqi
L PROTECTED]> To: Sent: Tuesday, April 01, 2008 3:51 PM Subject: RE: Problems about using Lucene to generate tag cloud.. May be you can index the set of documents in a temporary index. This index needs only one field (tag). Then you can browse the terms collection of the index and get

RE: Problems about using Lucene to generate tag cloud..

2008-04-01 Thread Dominique Béjean
May be you can index the set of documents in a temporary index. This index needs only one field (tag). Then you can browse the terms collection of the index and get each couple term/frequency IndexReader reader = IndexReader.open(temp_index); TermEnum terms = reader.terms();