lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley" <yo...@apache.org>
Subject Re: distinct term values?
Date Thu, 05 Apr 2007 00:50:01 GMT
On 4/4/07, Ryan McKinley <ryantxu@gmail.com> wrote:
> Is there an efficient way to know how many distinct terms there are
> for a given field name?
>
> I know I can walk through a TermEnum and put them into a hash

No hash needed... just walk through the TermEnum and count.

-Yonik

---------------------------------------------------------------------
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