>>> "to be able" != "able to be"
OK, I thought you wanted to count terms within the
title field. If you want to group counts on the whole
field value change the loop in my last post to this:
for(int i=0;i<reader.maxDoc();i++)
{
String fieldA=reader.document(i).get("fieldA");
DocCount docCount=(DocCount)
aDocTermCounts.get(fieldA);
if(docCount==null)
{
docCount=new DocCount(fieldA);
aDocTermCounts.put(fieldA,docCount);
}
docCount.count++;
}
Send instant messages to your online friends http://uk.messenger.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]