lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: Word co-occurrences counts
Date Fri, 24 Dec 2004 07:46:01 GMT

On Dec 24, 2004, at 12:40 AM, Andrew Cunningham wrote:
> 3) and then:
>        word in document count = 
> hits.score(k)/Similarity.decodeNorm(reader.norms("contents")[k])

You should use hits.id(k), not k, as the index to 
reader.norms("contents").

	Erik


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


Mime
View raw message