lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mark harwood <markharw...@yahoo.co.uk>
Subject Re: Document lazy-loading WAS [Re: Fast access to a random page of the search results.]
Date Tue, 08 Mar 2005 18:10:26 GMT
>>> "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: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message