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?
+2
A:
You can get the total result count, independently from max rows defined, through the numFound attribute in the Solr response.
Mauricio Scheffer
2010-09-05 15:19:17
can we the total count of documents where that search term exists..
Ahsan Iqbal
2010-09-05 18:44:17
@Ahsan: like I said, use the numFound attribute.
Mauricio Scheffer
2010-09-06 00:56:45
@Mauricio Scheffer: i think that if we search some term like "Contents:risk" the numFound will tell us how many times this term exists in all the lucene indexed documents right? but can we get the total count of lucene indexed documents having the search term no matter one indexed document contains search term more than once..
Ahsan Iqbal
2010-09-06 06:00:56
@Ahsan: numFound counts documents, not occurrences.
Mauricio Scheffer
2010-09-06 10:33:14
thank you very much for ur responses
Ahsan Iqbal
2010-09-06 12:06:50