lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: Getting count on distinct values of a field.
Date Tue, 13 Jun 2006 06:56:46 GMT

Look at the TermEnum class... iterate over the terms in your field, and
docFreq is the number of docs with that term.


: Date: Mon, 12 Jun 2006 17:36:01 +0530
: From: vipin sharma <heritrix.lucene@gmail.com>
: Reply-To: java-user@lucene.apache.org
: To: java-user@lucene.apache.org
: Subject: Getting count on distinct values of a field.
:
: Hi,
: i am having problem in getting the count on distict values of a field. The
: reason for getting this value is that, each of all documents in index
: belongs to one predefined class and i want to get the number of documents
: belonging to each class.
:
: Regards..
:



-Hoss


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