lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jokin Cuadrado" <joki...@gmail.com>
Subject Re: Get all unique values of specific field
Date Wed, 30 May 2007 10:26:05 GMT
You can also get stringindex of the class field, for access to the
field info without the need of accessing the document in hits.

You can implement a custom collector and get the unique values in that.

On 5/30/07, karl wettin <karl.wettin@gmail.com> wrote:
>
> 30 maj 2007 kl. 10.51 skrev Laxmilal Menaria:
> >> > What's the problem with a hit list iteration ( it should be
> >> > very fast  )  ?
> >

> > Thats okay for short index, But if index have millions of records
> > or GB's
> > data then it will get slow .
>
> Iterate only the top n results when you gather the unique values. If
> you get a million hits, ask the user to narrow down the search a bit.
>
> Searching the forum archives for facets or faceted classification
> might also be helpful.
>
>
>
> --
> karl

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message