Yes, Relevanssi can index Woocommerce products. Make sure your theme is not restricting the search to just posts, that’s the default behaviour in many cases.
No need to rebuild manually, Relevanssi rebuilds automatically. I suggest doing a manual reindexing once or twice per year.
Thread Starter
ctpweb
(@ctpweb)
where can I change this then? can you give some more details?
I don’t use Woocommerce, so I don’t know, but at least one Woocommerce theme I checked had a setting that restricted what the search covers and it was just enough to switch that option.
Thread Starter
ctpweb
(@ctpweb)
nothing like that in the settings 🙁
Then take a look at the HTML source code of your search form. Does it include something like this:
<input type="hidden" name="post_type" value="post" />
Thread Starter
ctpweb
(@ctpweb)
Yes I found it!
if ($query->is_search && !is_admin()) {
$query->set('post_type', 'post');
}
return $query;
[Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
I removed this filter and everything is found now! Awesome, thank you!