This commit is contained in:
Shinsuke Sugaya 2014-11-08 08:59:46 +09:00
parent 26e8de2b2f
commit 6957a8a068

View file

@ -130,7 +130,7 @@ public class IndexingHelper {
}
sq.setRows(row);
final SolrDocumentList docList = solrGroup.query(sq).getResults();
if (docList.getNumFound() < row) {
if (docList.getNumFound() <= row) {
return docList;
}
return getSolrDocumentList(solrGroup, fq, q, fields,
@ -303,7 +303,7 @@ public class IndexingHelper {
solrQuery.setRows(row);
final SolrDocumentList docList = solrGroup.query(solrQuery)
.getResults();
if (docList.getNumFound() < row) {
if (docList.getNumFound() <= row) {
return docList;
}
return getChildSolrDocumentList(solrGroup, id, fields,