[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.
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.
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.
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.
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?
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.