开发者

How to get total match count in Solr/lucene

开发者 https://www.devze.com 2023-01-14 16:57 出处:网络
I have a problem that i want to get total count of matched text in solr. but when i want to perform search using solr i have to set max rows parameter. can anybody explain how i could get开发者_开发技

I have a problem that i want to get total count of matched text in solr. but when i want to perform search using solr i have to set max rows parameter. can anybody explain how i could get开发者_开发技巧 the total matched count using solr efficiently?


You can get the total result count, independently from max rows defined, through the numFound attribute in the Solr response.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号