lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Wang" <john.w...@gmail.com>
Subject Re: Problems about using Lucene to generate tag cloud..
Date Sat, 05 Apr 2008 00:35:17 GMT
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 <daniel@nuix.com> 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.term().field() generate a null
> > pointer exception.
>
> Depends which terms method you use.
>
>    TermEnum terms = reader.terms();
>    System.out.println(terms.term());   => null
>
>    terms = reader.terms(new Term("id", ""));
>    System.out.println(terms.term());   => id:0
>
> The first method makes a normal while loop work but it also makes the
> assumption that there is only one field in the index, which may not be the
> case forever even if it's the case initially.
>
> Daniel
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

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