magiccart / searchquery
Search Query magento 2.
Package info
github.com/magepow/magento2-searchquery
Type:magento2-module
pkg:composer/magiccart/searchquery
Requires
- magepow/core: ^1.1.2
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is not auto-updated.
Last update: 2026-10-29 13:41:54 UTC
README
Magiccart SearchQuery is a Magento 2 extension that filters and sanitizes search queries before they are saved into search term popularity. It skips saving search terms that contain URLs, crypto-related keywords, or non-alphanumeric characters, reducing spam and irrelevant search terms in the store.
Features
- Enable/disable the filter via admin configuration.
- Skip saving search terms based on configurable rules.
- Blocks URLs and crypto-related keywords (bitcoin, coin, crypto, usdt, eth).
- Blocks search terms containing non-alphanumeric characters (except
-,+, space). - Integrates via a plugin on
Magento\Search\Model\Query.
Compatibility
- Magento 2.3.x / 2.4.x
- PHP 7.3+ / 8.x (as supported by your Magento version)
Installation
Manual Installation
- Create the directory
app/code/Magiccart/SearchQuery. - Copy the module files into that directory.
- Enable the module:
php bin/magento module:enable Magiccart_SearchQuery php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento cache:flush
Configuration
Go to Stores > Configuration > Magiccart > Search Query (or as configured in system.xml) to enable/disable the module and set skip behavior.
License
OSL-3.0 / AFL-3.0