Skip Navigation

[Resolved] Relevanssi search produces no results

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

Problem:
Relevanssi not searching through custom field text with Toolset Views Search.

Solution:
The issue was that your search was currently set to only check the Post Title and the Post Content.

To resolve this remove the search bar from your view and then reinsert it, ensuring that you've selected the option when inserting the search bar to search through the custom fields as well.

This support ticket is created 3 years, 8 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.

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 6 replies, has 2 voices.

Last updated by Purchasing WCER 3 years, 8 months ago.

Assisted by: Shane.

Author
Posts
#2060155

I am trying to: search all custom fields for custom post type of "materials

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

I expected to see: when I search "confidence" or "assesses" (both found in custom fields" the science self-efficacy post should show as a result

Instead, I got: "No items found"

I used Toolset > Settings > Text Search to get the correct field names for all the custom fields and the under Settings > Relevanssi I pasted those in under Indexing > Custom Fields > Some. I also have "material" post type checked to index and have rebuilt the index multiple times.

#2060503

Shane
Supporter

Languages: English (English )

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

Hello,

Thank you for getting in touch.

I tried logging into the site so that I can have a look however the credentials don't seem to work.

Can you test them on your end and let me know if they work for you ?

Thanks,
Shane

#2060505

Sorry username is ToolsetAdmin

#2061633

Shane
Supporter

Languages: English (English )

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

Hello,

This should now be working. The issue was that your search was currently set to only check the Post Title and the Post Content.

Given that you have relevanssi installed, I reinserted the search and set it to include the custom fields.

Please let me know if this helps.
Thanks,
Shane

#2061713

Hi Shane,
Thank you very much for fixing this! I want to make sure I understand how to do this myself if it happens again. Did you remove and reinsert the search in the materials-library2 archive > Search and Pagination section? Sometimes the insert option show as grayed out --even if they have later been removed. This happens with fields as well. Is there a way to remedy that?

#2061943

Shane
Supporter

Languages: English (English )

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

Hello,

What I did was to remove this shortcode below from the view.
[wpv-filter-search-box output="bootstrap"]

Then using the Text Search button I reinserted the search ensuring that I've selected the option that would include the custom fields.

Thanks,
Shane

#2061959

My issue is resolved now. Thank you!