SOLR-1103: LukeRequestHandler (and schema.jsp) have been fixed to include the '1' (ie: 2**0) bucket in the term histogram data.

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@810324 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Chris M. Hostetter 2009-09-02 00:56:19 +00:00
parent 3c96d00c26
commit 28e3e20f29
2 changed files with 5 additions and 1 deletions

View File

@ -519,6 +519,10 @@ Bug Fixes
61. SOLR-1091: Jetty's use of CESU-8 for code points outside the BMP
resulted in invalid output from the serialized PHP writer. (yonik)
62. SOLR-1103: LukeRequestHandler (and schema.jsp) have been fixed to
include the "1" (ie: 2**0) bucket in the term histogram data.
(hossman)
Other Changes
----------------------
1. Upgraded to Lucene 2.4.0 (yonik)

View File

@ -531,7 +531,7 @@ public class LukeRequestHandler extends RequestHandlerBase
public NamedList<Integer> toNamedList()
{
NamedList<Integer> nl = new NamedList<Integer>();
for( int bucket = 2; bucket <= maxBucket; bucket *= 2 ) {
for( int bucket = 1; bucket <= maxBucket; bucket *= 2 ) {
Integer val = hist.get( bucket );
if( val == null ) {
val = 0;