Skip Navigation

[Resolved] We are really struggling with Relevanssi.

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

Problem:

The customer was unable to get Relevanssi to recognize their custom post types ("fires") on their site, resulting in zero search results, despite it working with other content areas.

Solution:

We identified that the issue stemmed from the theme filtering the post types available in the default search widget, restricting results to only pages and posts. We adjusted the settings under Appearances > Theme Settings > Layout Settings > Search Content to exclude the filtering, allowing all custom post types to be displayed. After this adjustment, search results were successfully returned.

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 13:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Sao_Paulo (GMT-03:00)

This topic contains 6 replies, has 2 voices.

Last updated by Mateus Getulio 2 months, 1 week ago.

Assisted by: Mateus Getulio.

Author
Posts
#2743773

Tell us what you are trying to do?
Hello, we are trying to use the relevancy software on our site, hidden link however no matter what we do, Relevannsi will not recognize our fires. There are always "zero" fires returned. Even though relevannsi does worth with other content areas of our site.

Is there any documentation that you are following?
Only unofficial online documentation.

Is there a similar example that we can see?
Just the normal search functionality such as Google, etc.

What is the link to your site?
hidden link

#2743874

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello, please navigate to wp-admin > Settings > Relevanssi > Indexing tab and ensure that this post type is included in the index and not "excluded from search." Next, go to the Searching tab and check the "Keyword matching" settings. Make sure it is set to "Partial words." The option "Partial words if no hits for whole words" will not work if any results match the whole word.

If needed, rebuild the index and test again. Let me know if the issue persists.

#2743969
Screen Shot 2024-09-10 at 7.11.06 PM.png
Screen Shot 2024-09-10 at 7.11.06 PM.png

Hello Mateus,

Thank you so much for your help. I followed your instructions. I can now see the "index count" etc, but strangely no matter what we type in, there is ALWAYS zero results. I just can't seem to figure it out. Attaching photo. This would be a huge feature for our users so we're really pushing for it.

#2744397

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi,

Thank you for following those steps.

To suggest the best way to fix this, I'll need to see how this search is set up in the admin area.

Can you please share temporary admin login details along with a link to a page where this search can be seen?

Note: Your next reply will be private and please make a complete backup copy, before sharing the access details.

regards,
Mateus

#2745068

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello there,

I checked it and it looks like the issue was that your theme was filtering the post types to be displayed with the default search widget.

It was set up to only display results of the post types pages and posts.

To fix it I went to Appearances > Themes Settings > Layout Settings > Search Content and excluded the items in the filter, so that all CPTs can be displayed.

Now I'm able to see the results now when searching for them.

Can you please test it again to confirm it is working?

Thank you,
Mateus

#2745140

This is so helpful! Absolutely fantastic, thanks so much!

One question. Do you know how we can style the search results. For example wanting to put more information or custom fields?

Thanks!
Max

#2745206

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

search.png

Hi Max,

The wordpress default search page is actually an archive. In order to customize it you will need to create a custom archive at Toolset -> WordPress Archives and then select Search Results. See Screenshot

Then you'll be able to customize it like a regular view.

Please let me know if this helps.
Thanks,
Mateus