Modifies the native search to ignore HTML markup (block editor comments) and shortcodes
This plugin modifies the native wordpress search feature to ignore HTML markup (like block names) and shortcodes in your content.
With this plugin activated the unexpected search results are fixed which are reported in #3739 and in #56294
Works only for MySQL 8.0.4+ and MariaDB 10.0.5+
This plugin has no settings page, it modifies the internal search to ignore HTML and HTML comments in the post markup.
Imagine a development blog using a syntaxhighlighting block. If you search on this blog to find posts with the term "syntaxhighlighting" you will get every post with code and not only those post which are really about syntax highlighting.
At the moment this is not searched for anymore with this plugin. Maybe I can specifically allow this in a future version of the plugin.
This plugin just wants to solve this particular problem without too much overhead. If you need more customizations to your search, then please have a look at Relevanssi or Better Search.
These plugins are building up an index from your content and are therefore solving the underlying issue in another way with much more ways to customize it. And they will be even faster.
Thanks for asking! Yes, I'm very interested in edge cases and incompatibilities (other plugins or server configurations). Please open a new issue for this.
Props for helping to fix this go to espiat, l1nuxjedi, mustafauysal, ravishaheshan, and websupporter!