I am using Woocommerce and Relevanssi, so that we can search by SKU in front and back end. This works great.
However, our search results pages have different numbers of products on them. For instance there will be 19 pages of results in a search for "red", the first page will have our specified 16 products but later pages show 2 or 6 or 0 etc.
I am wondering if it is to do with the fact that we have products that are not active. In WOOCommerce this is a meta key of _visibility.
I am assuming that these are the ones missing from the search pages.
I realise you can add meta key's to the search index but is it possible to remove them from the search results before the pagination gets computed.