Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get total match count in Solr/lucene

Tags:

solr

lucene

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?

like image 736
Ahsan Iqbal Avatar asked Sep 05 '10 00:09

Ahsan Iqbal


1 Answers

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

like image 172
Mauricio Scheffer Avatar answered Sep 18 '22 15:09

Mauricio Scheffer