Is the index complete and correctly done? Does the Relevanssi admin search (Dashboard > Admin search) work? If it does, what does the MySQL query look like for the search (here’s how you find out)?
Hello Mikko,
I looked at the link you gave but did not understand anything. I guess I don’t have enough information. Admin search is running. I have had no problems for almost 1 year and I think I haven’t changed any settings.
1. Install the Query Monitor plugin.
2. Go run a search on the front end.
3. Click the Query Monitor numbers on the admin bar.
4. In the Query Monitor information, choose Queries.
5. In the Caller dropdown, select ‘relevanssi_search()’.
6. Copy and paste here the MySQL query that begins “SELECT DISTINCT”.
See the screenshots in the link I gave for guidance.
Hello Miko,
I made a video because I did not fully understand what to do and the program.
https://www.loom.com/share/e6b955b8d0cb4ee49cf9525bdbf93df0
Thank you
You ended up in the right place and no, there’s nothing wrong there. But I notice you’re using JetSmart and Relevanssi does not work with JetSmart Filters. Could this be the reason?
Hello Mikko,
Yes you are right. Relevanssi started working when I disabled the plugin. Is there any way to fix this?
Thank you
Unfortunately not, you have to choose which plugin you want to use. JetSmart Filters is built in a way that does not work with Relevanssi. I suppose it could work, so perhaps you can contact the JetSmart support and let them know you would like them to support Relevanssi. It’s possible, just takes some effort from them.
Hello Mikko,
I will do this. As an alternaive; jetsmart plugin works on one page. One of the plugins I use is “Asset Clean Up Pro”. This plugin allows me to decide which pages other plugins won’t load on. Could canceling Jet Smart site-wide be a solution?
Thank you
That’s possible; don’t know for sure.
Hello Mikko,
We talked to Gabriel, the author of the “Asset CleanUp: Page Speed Booster” plug-in, and he gave me some instructions. This worked and there is no longer a site-wide plugin conflict. Both plugins work on all pages.
I also notified the JetSmartFilter authors about the situation. Maybe they can produce a different solution
I wanted to share for people who have the same problem as me.
Thanks for support
Toygar Niron
Hey @toygar. Could you share your solution here please? I have an archive using Jet SmartFilter for post ordering that I’d love to use Relevanssi on. Many thanks!
Adding this to your theme functions.php
might help:
add_filter( 'jet-smart-filters/query/final-query', function( $q ) { $q['relevanssi'] = true; return $q; } );
Thanks, Mikko. Appreciate the reply. I found that snippet on your “Known conflicts” post and tried it earlier today, thank you. Unfortunately, it didn’t work for me.
Unfortunately that’s all I have, I don’t have access to JetSmartFilters so I can’t figure out what’s up with it.
No worries, Mikko. I’ve had a few issues with Jet Smart Filters. Hopefully @tniron can help. Cheers!