Mikko Saari
Forum Replies Created
-
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Recie Theme (culinary)Which search filter plugin are you using, or is it something built in your theme. Your search results page URL doesn’t use the regular WordPress parameters (you have
?palavras-chave=natasvs the usual?s=natas).Forum: Plugins
In reply to: [Relevanssi - A Better Search] Recie Theme (culinary)How did you set up the plugin? Which post types and taxonomies did you set Relevanssi to index?
Forum: Plugins
In reply to: [Relevanssi - A Better Search] No search suggestions show up for typoThe indentation is insignificant; PHP doesn’t care.
How long ago did you start collecting the log? Depending on your site traffic, it may take up to weeks before there are enough search logs for proper suggestions. There’s also a very long cache. You can flush that cache from the Relevanssi debugging settings page; that can help.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Incomplete search results being returnedExcellent! That kind of phrase synonym can be surprisingly limiting.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Incomplete search results being returnedI think that may be in breach of these forum rules. I’m not sure, but I’m not willing to take a risk here, as I need to maintain my access here to help others.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Incomplete search results being returnedIt’s impossible for me to say what’s excluding the post. If the word appears in the title, it should definitely be returned. Throttling might be one thing, but it only kicks in once you have more than 500 results per search term. I’d check if there are any additional filters in the search query that might block the post. Query Monitor is a good tool for checking the queries. If the site is somewhere where I can see it, you can enable the debugging mode from Settings > Relevanssi > Debugging and that may help give me a clue.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Incomplete search results being returnedWhat about the admin search? Does the Relevanssi admin search (Dashboard > Admin search) return 45 posts or 9 posts?
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Incomplete search results being returnedIs the word “merger” indexed for the post if you take a look at the Relevanssi debugger at Settings > Relevanssi > Debugging?
What kind of other examples are there of words that cannot be found?
What if you do those searches on the Relevanssi admin search (Dashboard > Admin search), are the results the same there?
How large is your site? How many results are there for “merger”?
Yes, if the search responds to the Relevanssi indexing settings (and rebuilding the index, of course, just changing the setting doesn’t do anything), then it’s Relevanssi.
As to why the settings are not respected, that’s hard to say without a closer look at the site. Relevanssi does store the keyword matching setting in a single option and uses that for all searches, so if it’s not working correctly, either something’s wrong with the setting or something overrides it.
Nothing. Relevanssi only has one set of settings, and those are used for all searches, unless explicitly overridden with filters. It’s not easy to set up multiple settings with Relevanssi.
Are you sure that code makes the search use Relevanssi? Do the results change if you disable the function? That looks like the correct way to set the parameter, but sometimes it’s possible the search results template defines a new WP_Query and overrides the one where the Relevanssi results are.
Yes, it sounds like that.
By the way, you don’t need to run
relevanssi_do_query()if you’ve setrelevanssitotruein the query parameters: you’re running the search twice if you do that. Just thenew WP_Query()is enough.Another tip: WordPress has a built-in
__return_false()function for returningfalse(and a bunch of similar functions).Relevanssi always indexes the post content, so there are a couple of options here:
- You have somewhere enabled the filter that blocks Relevanssi from indexing the content (look for
relevanssi_index_content). - You have a filter function on post content that removes it from the index (look for
relevanssi_post_contentandrelevanssi_content_to_index). - Your post content is not actually stored in the post content, but instead in a custom field that is not indexed.
- Some other third party interference.
The only perfectly reliable admin search with Relevanssi is the Relevanssi admin search at Dashboard > Admin search. Does that work? If not, there’s a problem in how your posts are indexed. If you check a post that cannot be found with the Relevanssi debugger (Settings > Relevanssi > Debugging > enter the post ID in the first box > Check the post), what does it look like? Are all the words included? Does the word “vehicle” appear in the list?
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Search result are not showing ht_kb PostsIt’s possible the knowledge base plugin AJAX search does not use Relevanssi. If you do the same search with the Relevanssi admin search (Dashboard > Admin search), do you get accurate results there?
No, the warning clearly says it’s because the
compareparameter is not set (it’s an optional parameter, and Relevanssi should treat it like that but doesn’t). That’s why setting it will make the warning go away. Therelationparameter is not related. - You have somewhere enabled the filter that blocks Relevanssi from indexing the content (look for