Comments (2)
Absolutely fine with you sharing it :)
from wp-search-ignore-block-names.
I hope it is okay if I share this from your email @LinuxJedi? :
It should be noted though that it will not use any indexes so will run the regex on every row. So, without other filters there will likely be negligible performance difference between doing this on the database side and the client side (mostly the extra data transfer time and MariaDB's C++ doing the regex vs PHP execution time).
If you wanted to do it in a way that performs better, an index of keywords would be required. MariaDB has full text indexing in InnoDB for this. I don't know what MySQL does. But something custom could be written I suspect. Then you would just need to filter the results on the PHP side when you retrieve them so that the results that match inside the meta tags are filtered out
For this plugin, I'm just trying to fix the search problem and don't want to optimize the search in general. So I think for creating an own index would be overkill (Relevanssi and other plugins do this already) and if the performance difference is negligible I think I'm fine with my approach at this time.
Anything I can/should do on the plugin side to speed things up?
from wp-search-ignore-block-names.
Related Issues (10)
- Adding a toggle for the internal search in admin area HOT 3
- Add back link to plugin page after deactivation
- Support ignoring shortcodes HOT 2
- Search for title and excerpt is broken with this plugin HOT 1
- Add HTML markup to the ignored text
- Add more solutions the the problem in the FAQ
- Not working as expected
- Prevent activation if database is not supporting REGEXP_REPLACE
- Problem with Full Site Editor showing the no results block
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wp-search-ignore-block-names.