Skip Navigation

[Resolved] Toolset search does not use Relevanssi

This thread is resolved. Here is a description of the problem and solution.

Problem:
Include custom field inside views text search.

Solution:

To include custom fields into your text search on views please follow the instructions below.
https://toolset.com/documentation/user-guides/searching-texts-custom-fields-views-relevanssi/#integration-with-custom-searches

This support ticket is created 5 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Our next available supporter will start replying to tickets in about 1.93 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 3 replies, has 2 voices.

Last updated by craigB-7 5 years, 10 months ago.

Assisted by: Shane.

Author
Posts
#1188330

I am trying to:
Use Relevanssi to allow searches for posts based on taxonomy terms

Link to a page where the issue can be seen:
hidden link

I have placed a WP Views Filter widget on the page, but it appears that Toolset is not using Relevanssi for searching. Rather it seems to be using the default WordPress search. It will not find any posts based on taxonomy terms for that post. Rather, it seems to be only using the post title.

In order to verify this theory, I placed a regular WordPress search widget on the page, in addition to a WP Views Filter widget. I have a taxonomy called "Product Tags" for a custom post type called "Products". I have three Product posts that have a Product Tags term called "breakfast". If I search for "breakfast" using the regular WordPress widget, it shows me all three of posts that have "breakfast" as a taxonomy term. However, if I search for "breakfast" using WP Views Filter widget, all I get is "No items found". In other words, the WordPress search widget appears to be using Relevanssi, but the Toolset WP Views Filter widget does not.

As an additional test, if I do a search using the WordPress widget, I find that the counters increment on my Relevanssi User Searches Dashboard page. However, if I do the same search using the WP Views Filter widget, the counters do not increment.

What can I do to make Toolset use Relevanssi instead of the normal WordPress search?

#1188350

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Craig,

Thank you for contacting our support forum.

This could be that your search field is still only set for Post Title. What you can do is to remove the search field from the view and it should prompt to remove the query filter. Then re-add the search field then ensure the option that includes the custom field is selected.

Thanks,
Shane

#1188392

Thanks for your help, Shane. That was, indeed, the problem. I had to set the search filter for Title, Body, and Custom Fields. After that I was able to successfully search by taxonomy.

#1188393

My issue is resolved now. Thank you!