DocSlice
253254255256257258259
if (count < length) { // if we already cut some from the first page, then total match should be what we keep matches = count; } return new DocSlice(0, count, docList, scoreList, matches, maxScore); }
123124125126127128129
scoreList[i] = solrDoc.getScore(); if (scoreList[i] > maxScore) maxScore = scoreList[i]; } return new DocSlice(0, length, idList, scoreList, matches, maxScore); }
8889909192939495969798
for (int i=startRow; i<endRow; i++) { ids[i] = hits.id(i); data[i] = hits.doc(i); } rsp.add(null, new DocSlice(0,numRows,ids,null,numHits,0.0f)); /*********************** rsp.setResults(new DocSlice(0,numRows,ids,null,numHits)); // Setting the actual document objects is optional