Relevanssi 3.4 was just released. It’s WordPress 4.2 compatible, fixes few small bugs and adds much better meta_query support.
- New filter:
relevanssi_valid_admin_status
can be used to adjust post statuses that Relevanssi will handle. - If Relevanssi creates an empty excerpt for a post and there’s a user-set excerpt for the post, that excerpt is used.
- No ellipsis is added to the post excerpt, if the post excerpt shows the whole post.
- The
relevanssi_post_title_before_tokenize
filter now has a second parameter that contains the post object. - New filter:
relevanssi_display_common_words
can be used to disable the “25 most common words” listing on the settings page, if it’s too heavy to load. - Relevanssi was sanitizing taxonomy titles too aggressively. That is now toned down a bit.
- Relevanssi now supports
post_parent
,post_parent__in
andpost_parent__not_in
, though you have to set them inrelevanssi_modify_wp_query
filter for them to work. - Meta query support should now be perfect; there were some limitations with complicated meta queries before.
I updated from 3.3.8 to 3.4 and the search form in the WooCommerce Product Search widget stopped returning results. The products are in the index because they appear when a full search is performed, but not when post_type=product is present. Has anyone else seen the same issue?
Does it work if you change the “post_type” parameter to “post_types”?
Yes, it does work if the “post_type” parameter is switched to “post_types” (i.e. “post_types=product”). Thanks Mikko!