Fixed for the solr search page. As there is no API to get the number of search results on the current page, the code instead inspects the rendered HTML. This only works for the Solr search and as long as the layout does not change, but this seems good enough for now, at least to me. Also if the page gets reloaded via AJAX in case the faceting selections by the user, this is not taken into account. As the limitations by faceting are not recorded in the statistics and the search term does not change, I guess that is ok. |