首页 > 代码库 > lucene: nDocs must be > 0查询异常解决

lucene: nDocs must be > 0查询异常解决


nDocs must be > 0
 
 
// 函数search(query,filter,n),其中query是查询条件,filter是过滤器,n查询数量,异常消息意思就是n参数的值必须大于0 
TopDocs topDocs = indexSearcher.search(bQuery, null, startNo + pageSize);

lucene: nDocs must be > 0查询异常解决